-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem with tag id obligatory in definition class
PostPosted: Wed Mar 15, 2006 10:27 am 
Newbie

Joined: Fri Feb 24, 2006 5:18 pm
Posts: 2
Hi,

I have a class in my application that does not have an attribute id, because the primary key for the table in the BD it is generated as a sequence that is updated from the application, and I am not interested in storing this id in the class.

In the file .hbm when I write the definition of the class, I can't remove the tag id, because the apllication generate a mistake.

I want to know if exist any way to write the definition of one class whitout attribute id in my file .hbm

regards,

Jose


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.