domain « Update « JPA Q&A





1. What is the "persistence domain model"    stackoverflow.com

I see a lot of references to this in Java software discussions specifically those talking about Hibernate. I cannot find any definition of what it is and why I care ...

2. HQL updates and domain objects    stackoverflow.com

I have what may be a pretty elementary Hibernate question. Do HQL (and/or Criteria) update queries cause updates to live domain objects? And do they automatically flush now-invalid domain ...

3. Why doesn't Grails notify me of error at domain object saving?    stackoverflow.com

I'm just starting with Grails, and here is the first issue. I spent several hours to find out that domain object cannot be inserted in DB, until all its properties are populated.

class ...

4. Domain Model of Java Persistent with Hibernate    coderanch.com

In JPwH's Caveat Emptor domain model (Fig 4.1) it uses 2 associations between Bid and Item classes to represent the successful bid must be from the Set of associated Bid instances. I'm not confortable with this design. For one thing, it is difficult to represent in UML that the associated successful Bid instance must be in the Set of all Bid ...

5. Domain model different from persistent model. Good practice?    forum.hibernate.org

Hi, I got involved recently in a project where they've setup a fairly generic datamodel and have made a one-to-one mapping to a set of persistent classes. On the other hand they've created a separate non-persistent domain model that reflects the business domain. Between the two they are developing an interface layer that basically converts from the one structure to the ...

6. Keeping the Domain Model free of persistence logic ...    forum.hibernate.org

I'd like to answer that last question in case someone searches for this (important) distinction. This has also been a FAQ recently: "If domain logic needs to search large collections for unique elements" is the goal. This is actually two steps: 1. Search for a pattern 2. Execute some routine depending on the result Now, I'd say that 1. is definitely ...

7. What is the common way to write persistent domain classes?    forum.hibernate.org

What is the common way to write persistent domain classes with hibernate these days? Let's assume we have a project with 100 domain classes. Use a hibernate xml? What about annotations? What ends up being the best/light-weight route to take? Also, as an aside, what are the common ways to test databases these days? I used to use dbunit, but I ...