Welcome to dbForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Hibernate: table without primary key

 
   Database Forums (Home) -> Java RSS
Next:  [ANNOUNCE] New Release of Mogwai ERDesigner NG  
Author Message
Andre Rothe

External


Since: Jan 04, 2008
Posts: 2



(Msg. 1) Posted: Fri Jan 18, 2008 12:00 pm
Post subject: Hibernate: table without primary key
Archived from groups: comp>lang>java>databases (more info?)

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

 >> Stay informed about: Hibernate: table without primary key 
Back to top
Login to vote
Avinash Ramana

External


Since: Feb 10, 2008
Posts: 1



(Msg. 2) Posted: Sun Feb 10, 2008 12:53 pm
Post subject: Re: Hibernate: table without primary key [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 18, 8:30 am, Andre Rothe <andre.ro... DeleteThis @imise.uni-leipzig.de>
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

 >> Stay informed about: Hibernate: table without primary key 
Back to top
Login to vote
Display posts from previous:   
   Database Forums (Home) -> Java All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]