-->
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: Two Mapping files for the same class?
PostPosted: Tue Apr 17, 2007 2:26 am 
Newbie

Joined: Tue Apr 17, 2007 12:55 am
Posts: 1
Hi,

1) Would like to know, is that possible to have a two mapping files for the same class?

2) I am having a class with two properties, Address with name and city.
Also having mapping defined for both attributes, need to know is there any dynamic querier/switch/properties available, which would say to persist only those properties not all..

For ex : I have a record in db - 1 ram chennai 23341212
I have an object in memory - 1 ram newchennai null

Now i wanted to persist the second object, but it should exclude the last attribute which is having null.

Any thougts???


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.