1. J2SE desktop applications - JPA database vs Collections? stackoverflow.comI come from a web development background and haven't done anything significant in Java in quite some time. I'm doing a small project, most of which involves some models with relationships and ... |
2. Little Hibernate puzzle - database right, collection wrong forum.hibernate.orgMost obvious thing to blame would be the hashCodes of the various classes. If they're using member fields instead of properties, then the default values may be being used, instead of the hydrated values (from the DB). hashCodes likes this are bad: Code: public int hashCode() { return 17 + (m_nIntValue * 37) + (m_sStringValue.hashCode() * 37); } This ... |
3. how do we save a collection in the database forum.hibernate.orgCan I use saveOrUpdate() to add a collection(Set) to the database? Can I use the saveOrUpdate() method on the session object for adding a record to the database. What I need actually is if the given record doesn't exist in the database I need to add it or if it already exists I need to modify it. Presently I am doing ... |
4. Collection not being persisted to database ??? forum.hibernate.orgBeginner Joined: Fri Oct 06, 2006 7:11 am Posts: 32 Hi, I have the following relationship Certificate has one or more Packers Packer has one or more Manufacturers When I create a Certificate and save it, everything works fine. When I create a Certificate and try to add a Packer nothing is saved. The SQL seems to be generated ok but ... |
5. Help: Persist collection in two databases forum.hibernate.orgI have Lead class with Set |