hibernate-mapping
Annotation equivalent to Component in Hibernate
I am aware that using thecomponent tag I can use a part of the class and make it available in an entity in hibernate.[详细]
2023-02-26 10:12 分类:问答Is it possible to define default object inside a SET element in HBM?
lets say I have mapping of a set within Parent hbm file: <set cascade=\"all\" inverse=\"true\" lazy=\"false\" name=\"chil开发者_运维问答dren\">[详细]
2023-02-25 13:15 分类:问答Hibernate UserType problem
I am trying my hands on H开发者_StackOverflow社区ibernate\'s userType and struck in some problem.here is my mapping file[详细]
2023-02-23 21:50 分类:问答Is it possible to map Hibernate <component> column to a custom user type?
I have defined a custom user type that works fine when used properties of my entities. For instance: <class name=\"com.my.sample\" table=\"MY_TABLE\">[详细]
2023-02-22 22:04 分类:问答Hibernate - A collection with cascade=”all-delete-orphan” was no longer referenced by the owning entity instance
I\'m having the following issue when trying to update my entity: \"A collection with cascade=”all-delete-orphan” was no longer referenced by the owning entity instance\".[详细]
2023-02-22 16:59 分类:问答Persistence a child object with existing parent one
Assume there are two entities with ManyToOne relation: @Entity public class A { private long code; @Id @GeneratedValue(strategy=GenerationType.AUTO)[详细]
2023-02-20 13:57 分类:问答In which case do you use the JPA @JoinTable annotation?
In which case do you 开发者_如何学Gouse the JPA @JoinTable annotation?EDIT 2017-04-29: As pointed to by some of the commenters, the JoinTable example does not need the mappedBy annotation attribute. I[详细]
2023-02-20 10:22 分类:问答Hibernate HBM Mapping Problem
I have the following three classes: public class Student { private Integer studentId; private StudentSchool studentSchool;[详细]
2023-02-20 09:33 分类:问答Which version of Hibernate tools file i should use to generate hibernate POJO for java 5
It could be a silly question and i am sorry for that. I am using ant task for generating POJO and hbm file from databse by using hybernate reverse engg.[详细]
2023-02-19 03:54 分类:问答Hibernate mapping resource locate in the separate jar
I have separate jar file has contain hibernate entity mapping and mapping directly. My Hibernate confg (cgf.xml) placed in another jar file. And as result I catch exception \"resource: com/iceleads/da[详细]
2023-02-18 19:32 分类:问答