persistence
Entity relationships design with JPA2
I have two entities, User and UserSetting. The obvious relationship between these two has User as the first rate entity which contains a set / list of UserSettings so when a User is loaded the setting[详细]
2023-04-07 03:39 分类:问答Should I convert my Grails domain relations to use Hibernate Bags? [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-07 00:30 分类:问答How to make HaXml and DrIFT work with GHC 7.0.3?
I\'m looking for a solution to interchange data between Haskell and Java/Scala/C# code. Currently, I\'m thinking about using XML. Ideally, I\'d like the XML schema to be generated from my Haskell data[详细]
2023-04-06 23:12 分类:问答JPA relation Persistence
I am using JPA 2 with following jars on class path [INFO] +- org.aspectj:aspectjrt:jar:1.6.9:compile [INFO] +- org.aspectj:aspectjweaver:jar:1.6.9:compile[详细]
2023-04-06 22:38 分类:问答Hibernate: How configure EntityManager in Hibernate?
I create a hibernate project with \'hibernate tools\'provide by JBoss to Eclipse. Generated the Entities (POJO\'s) and then the DAO\'s.[详细]
2023-04-06 01:14 分类:问答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 分类:问答Play! framework bootstrap(Fixtures.loadModels("initial-data.yaml)), injecting "random" String value in model's setter
I开发者_StackOverflow中文版 have a model class with a persisted DateTime field that is only interacted via getters/setters for Transient properties, String date; and String time;. The do some very spe[详细]
2023-04-05 06:12 分类:问答Serialization vs Embedded Database for simple standalone application
Say, I have a pretty simp开发者_开发技巧le Java application that needs the way to store some user settings. XML is not a really good solution, since I want to store them in binary form. So, what would[详细]
2023-04-05 02:29 分类:问答Abstracted model interface in Play! ORM, how does initial-data.yml get loaded?
I have a model called Booking which has a persistent DateTime field. However I do not want to interact directly with this field, but rather through two Transient String fields, date and time. The prob[详细]
2023-04-04 19:16 分类:问答Hibernate: mapping @OneToMany / @ManyToOne problems (not using entity primary keys)
I am new to Hibernate / Spring, trying to map legacy database while creating a little web utility, which should ease some work for the colleagues. As I had mapped the entities and have access to the u[详细]
2023-04-04 19:14 分类:问答