-->
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: retrieve derived field on save/update -- tagging system
PostPosted: Mon May 14, 2007 1:13 pm 
Newbie

Joined: Fri Apr 13, 2007 12:25 pm
Posts: 17
is there any way to retrieve a derived field on save or update? the reason i need to do this is because I am trying to implement a tagging system, where each tag has an auto-generated ID from the database, but i want the tag itself to be the unique property. for example there is only one tag named 'test' in the system, and it can be referred to by either its name or it's auto-incremented identifier. so i have set it up to have the name be the ID field and the number be a regular field with update=false and insert=false. this works fine to save but when i do, it doesn't update the instance in memory with the generated id- i would like to use this number as the foreign key in tag pivot tables, that is why i want it. any ideas, or anyone who's implemented a tagging system using hibernate?? thanks!


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.