-
Oct 22nd, 2010, 06:16 PM
#1
What is the annotation matching node attribute in hibernate mapping file?
Hi All,
Can somebody help me this out?
What is the JPA annotation matching the node attribute in hibernate mapping file?
public class User implements Serializable{
@Node?
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
}
<hibernate-mapping package="ca.digitrend.ville.vo" default-access="field">
<class name="User" table="Users" node="user">
<id name="id" column="id" node="@id">
<generator class="native"/>
</id>
</class>
</hibernate-mapping>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules