hibernate-annotations
NamedQuery defined in DAO annotation not found by Hibernate session factory
I use Spring along with Hib开发者_JAVA百科ernate. In my DAO, I defined a NamedQuery which is not found by the session factory, although I have added the package of that DAO to the packagesToScan.[详细]
2023-04-13 07:48 分类:问答What use in place of Annotations Configuration in Hibernate?
I used AnnotationConfiguration before but now is deprec开发者_如何学运维ated AnnotationConfiguration cfg = new AnnotationConfiguration();[详细]
2023-04-13 03:36 分类:问答How can I prevent Hibernate from updating NULL values
Is there a setting in hibernate to ignore null values of properties when saving a hibernate object? NOTE[详细]
2023-04-06 23:08 分类:问答I need to carry forward the primary table's primary key to a foreign key field in dependent table
I have 2 entities Customer and address please find the code below, I have omitted boiler plate code for simplicity.[详细]
2023-04-06 16:55 分类:问答Composite key in Hibernate Annotations confusion
I have two tables say \'A\' and \'B\'. A third table \'C\' has two columns that directly refer to \'A\' and \'B\' i.e. \'C\' contains \'A_id\' and \'B_id\' that refer to A\'s id and B\'s id respec开发[详细]
2023-04-06 11:10 分类:问答Confusion: @NotNull vs. @Column(nullable = false) with JPA and Hibernate
When they appear on a field/getter of an @Entity, what is the difference between them? (I persist the Entity through Hibernate).[详细]
2023-04-05 19:03 分类:问答How to don't create column in hibernate include some property in entity class
I want to property in entity seam. But I dont want to create column in database. for example my entity is ;[详细]
2023-04-05 02:37 分类:问答hibernate many to many mappings for join table with extra columns , surrogate key, additional primary key
I\'m having hard time to resolve entity mappings (using annotations) for the following scenarios ( from legacy db)[详细]
2023-03-26 13:44 分类:问答Mapping compound foreign key in hibernate
I asked a question here on how to design a database schema. In summary I have an addressbook that can contain contacts and groups.Groups can also contain contacts, but only contacts which are in the[详细]
2023-03-26 07:30 分类:问答Issue with sequence why two entity are sharing the same sequence when generating schema with hbm2ddl ?
I am using hbm2ddl in my hibernate based application to generate the db schema. The value of hibernate.hbm2ddl.auto property is create-drop.[详细]
2023-03-24 02:05 分类:问答