Re: Hibernate: table without primary key



On Jan 18, 8:30 am, Andre Rothe <andre.ro...@xxxxxxxxxxxxxxxxxxxx>
wrote:
Hi,

Is there a possibility in Hibernate to create a table without a primary
key (without the @Id annotation)? I set up a with a dummy key, but I
hate this solution.

Thanx
Andre

No. Hibernate uses the primary key as a method of keeping identity.
Dummy key is fine


-Avinash
.



Relevant Pages

  • Hibernate: table without primary key
    ... Is there a possibility in Hibernate to create a table without a primary ... key (without the @Id annotation)? ... I set up a with a dummy key, ... hate this solution. ...
    (comp.lang.java.databases)
  • Re: JPA implizites Entfernen von Objekten
    ... kannst Du jedoch die entsprechende Annotation dort benutzen. ... da ich JPA für fortschrittlicher gehalten habe als Hibernate, ...
    (de.comp.lang.java)