hibernate-annotations
Calculating and storing precomputed average with Hibernate
Say I have a set of products and each product has a set of reviews. Each review has a score. I will need the average of the scores much more often then I will need the actual reviews. Are there any be[详细]
2023-02-19 23:20 分类:问答Join entity with composite key
I have 2 entities for legacy db with composite keys, one of them has a composite key with @EmbeddedId annotation.[详细]
2023-02-16 16:29 分类:问答Hibernate Views using Annotations
Learned that it is possible to write a SELECT where each row can be effectively mapped to an object: Elegant ways to handle database views on hibernate entities?[详细]
2023-02-15 18:21 分类:问答Hibernate Setup
I always used Hibernate annotations in my old job, but since all our projects were already set up, I never really learned the mechanism behind it.[详细]
2023-02-14 21:22 分类:问答How hard is to make shoppping cart with HIbernate annotaion
I am learning spring mvc and hibernate. i have just finished simple site with CRUD operation usin hibernate annotat开发者_高级运维ions and mysql. Now i have to build shopping cart site and i don\'t k[详细]
2023-02-14 05:02 分类:问答Hibernate Annotations: Store an int in a varchar column
I\'m using Hibernate Annotations. In my POJO I have a year field which is an int. I would like to persist this value in a char(4) column in my DB, and have hibernate convert the types back and forth[详细]
2023-02-13 06:00 分类:问答Hibernate - from Annotations to XML Configuration files
I used Hibernate Annotations for mapping tables, but I wanted move to xml mapping files (*hbm.xml), and I have some troubles. I have 4 tables (users, cars, rentals, user_car) and 3 classes (User, Car,[详细]
2023-02-10 11:16 分类:问答Specify foreign key constraint name when using Map and @ElementCollection with Hibernate
I have a sort of exotic map开发者_运维知识库ping for a field: @ElementCollection @CollectionTable(name = \"studentGradeLevel\", joinColumns = @JoinColumn(name = \"studentId\"))[详细]
2023-02-09 10:01 分类:问答hibernate annotations same class reference
I\'m in need of help with hibernate annotation, when I have a table with same parent id. Like this example[详细]
2023-02-04 09:29 分类:问答Java Hibernate Mapping Exception! (Could not determine type for: java.util.Map)
I have made a class with name of Movie with folowing fields: @Id @GeneratedValue private Long id; private String name;[详细]
2023-01-28 08:00 分类:问答