-->
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: Mapping One of Three Columns to a Single Java Property
PostPosted: Thu Jul 23, 2009 12:42 pm 
Newbie

Joined: Thu Jul 23, 2009 12:32 pm
Posts: 5
Using Hibernate's JPA annotations, I've mapped a class to an existing table. The table represents insurance plans. There are only minor differences among the types of plan--not enough to justify an inheritance relationship. The problem with this table is depending on the type of plan, one of three columns represents the maximum value that can be contributed to the plan. I can't change this because other applications depend on this arrangement. Depending on the type of plan, I would like to map the appropriate maximum value column to a single property in my class. In other words, I want a single property that represents the maximum no matter what insurance plan type. Can Hibernate easily help with this?


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.