1. Does Hibernate disallow read-only on @Column in embedded ID composite primary key classes (bug?)? stackoverflow.comHere's the DB design (DDL):
|
2. How to write JPQL SELECT with embedded id? stackoverflow.comI'm using Toplink essentials (JPA) + GlassFish v3 + NetBean 6.9 I have one table with composite primary key:
|
3. Hibernate: read-only on @Column in embedded ID composite key classes mapping exception - bug? coderanch.com@Entity @Table(name = "Zips") public class Zip implements Serializable { @EmbeddedId private ZipId embeddedId; @ManyToOne @JoinColumn(name = "country_code", referencedColumnName = "iso_code") private Country country = null; ... } @Embeddable public class ZipId implements Serializable { @Column(name = "country_code", insertable = false, updatable = false) private String countryCode; @Column(name = "code") private String code; ... } |
4. NPE when persisting entity with embedded composite key forum.hibernate.orgAuthor Message nickpdx Post subject: NPE when persisting entity with embedded composite key Posted: Thu Feb 11, 2010 12:54 am Newbie Joined: Wed Feb 10, 2010 11:50 pm Posts: 2 I'm going off the writeup on many-to-many associations with composite key at http://boris.kirzner.info/blog/archives ... osite-key/ . My particular legacy domain crap has a join entity with 3, not 2, ... |
5. Is it possible to embed a subclass into a composite-element forum.hibernate.orgHi guys, I would like to know if there is a possiblity to embed a sublass element into the composite element of the set/bag/idbag element ? Imagine I have two classes that extend one abstract class that is mapped to an unique table. (table per class hierarchy mapping). These classes could be composite-elements in a idbag element of a parent Entity. ... |
6. |
7. Embedded Error with composite-id forum.hibernate.orgNewbie Joined: Tue May 05, 2009 3:11 am Posts: 3 Hi, I have a problem with the creation of composite primary keys with forgein keys. An exception is thrown when executing an ant-taks with maven and hbm2ddl. It mentions that the class of the composite id is not found, but I thought this class will be created by excuting hbm2ddl or ... |