Hello,
In the Hibernate tutorial provided by Dr. Sang Shin is tailored only to
hibernate only. Suppose a user wants to use the persistence APIs how does
the user modifies the code to reflect this? An example is better than
words, in the person.java class, I have a line like this :
.....
public class person implements Serializable{
private int Id;
private String name;
....
now, I want to change the name of Id to be ID in my table, I would add some
annotations to it using the @Column annotation
public class person implements Serializable{
@Column(name = "ID")
private int Id;
private String name;
now the compiler complains about me not inserting the right header, when I
click to correct that, I only get this :import
org.hibernate.annotations.Columns;
but I should be able to also get import javax.persistence.*; For now, the
IDE doesn't give me the javax.persistence autocompletion only the
org.hibernate.annotations.* are given. why is this?
--
You received this message because you are subscribed to the Google Groups
"JPassion.com: Java Programming" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jpassion_java?hl=en.