id « HBM « JPA Q&A

1. how , where and when to use natural-id in hbm file in hibernate?

I searched a lot in google but i didn't find any satisfied answer. So any one any please tell me a senario, where to use natural-id in hbm file in ...

2. is ID column a must in hbm files?

3.  entry in .hbm.xml for a primary key spanning

I am trying to generate an identifier generator class that provides the primary key for this table, and provide an entry in .hbm.xml for this table. Could someone please help? create table iv_prs ( protocol_id varchar2(255), CONSTRAINT iv_prs_pk PRIMARY KEY (protocol_id, version, protocol_id_num), protocol_id_num varchar2(100), protocol_name varchar2(255) CONSTRAINT iprs_protocolname_nn NOT NULL, base_protocol varchar2(255), description clob, version varchar2(20), xmlRep blob, ...

4. hbm2java generate-class and compsite-id

5. Simple question on the id in the hbm.xml file

6. hbm2ddl generating unspecified ID column