Java 1.5 new features
Interesting read about some new features in j2se 1.5: Five Favorite Features from 5.0. Good timing, as i started using jdk 1.5 this week: i’ve been trying Hibernate 3.0 with annotations. I’ve used Hibernate in the past in combination with xdoclet, switching to annotations is pretty straight forward.
Something you might run into when starting with annotations is the following error message:
Error(8): cannot find symbol
It’s not a very helpfull error message, but you can solve it by importing the class for the annotation you are using:
import javax.persistence.*;
@Entity
@Table(name="EMP")
public class Emp {
11 Jun 2005 |