-->
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: Map a product and be able to store historic version of the p
PostPosted: Tue Jun 20, 2006 10:04 am 
Newbie

Joined: Wed Mar 08, 2006 2:48 am
Posts: 1
Hi,

I have a product with productNo, productVersion and so on.
I want to work with only one version of my product and sometimes create a new version and save the old one and be able to reverse to the old product.
Example

Product.productNo= 100, Product.productVersion=1, after a while a new better version of the product is developed and it shall be considered as the same product but with a new version
Product.productNo= 100, Product.productVersion=2

I want to save both but only show one version, the latest. In search and lists and in update and delete.

I can of course do this programatically, but is there a way to do this in a simple way with Hibernate.

I looked at the version propery but that is not what I want, because then there are a new version everytime you save the product.


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.