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.
|