-->
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.  [ 3 posts ] 
Author Message
 Post subject: unsaved-value in the mapping file
PostPosted: Thu Feb 24, 2005 5:19 pm 
Newbie

Joined: Wed Jan 26, 2005 8:05 am
Posts: 13
Hi guys,
I would like to know is there any mean to set
other values than "null" or "0" for unsaved-value argument
in the mapping file ?
Can I set a negative number as unsaved-value.

Thank you.

Skyrose.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 5:05 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
If using native generator you can specify exact value: 0, null, -1, ...
But you can write your own generator that checks if value is negative, ...
See interface IdentifierGenerator.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 5:15 am 
Newbie

Joined: Wed Jan 26, 2005 8:05 am
Posts: 13
Hi alesj,
Thank you for your reply.
I Wander, do you have some example
how to implement the IdentifierGenerator interface ?
Some links or documents.

Thank you.
Skyrose.


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

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.