JPA
iteye_15448
这个作者很懒,什么都没留下…
展开
-
One-To-Many in JPA
1)[code="java"]@Entity@Table(name = "UT_PARENT")public class ParentObject { private int id; private String value; private Set children; @Id @GeneratedValue(strategy = ...2009-03-10 21:07:57 · 73 阅读 · 0 评论 -
One-To-Many in Hibernate
[code="sql"]CREATE TABLE FATHER ( ID CHAR(32) NOT NULL, NAME CHAR(32) NOT NULL, PRIMARY KEY(id) ) CREATE TABLE SON ( ID CHAR(32) NOT NULL, NAME ...2009-03-10 21:12:48 · 71 阅读 · 0 评论 -
JPA.MappedSuperclass and JPA.EntityListeners
[code="java"]@MappedSuperclass@EntityListeners( { PersistenceObjectListener.class })public abstract class AbstractPersistenceObject implements PersistenceObject { private Timestamp version;...2009-03-10 21:36:54 · 144 阅读 · 0 评论