-->
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: using applicationContext file to configure entities
PostPosted: Mon Apr 23, 2012 4:31 am 
Newbie

Joined: Tue Apr 10, 2012 2:57 pm
Posts: 8
Hello,

I have an entity class which has a field called "domaindID" of type String. I want to be able to assign a fixed value to this field everytime an object is instantiated, but I don't want to change the class file. I believe that there should be a way to do it from my applicatinoContext file. Could anyone help me?

I am using SpringSource Tool Suite 3.1.0 with Hibernate 6.0

The problem description would be slightly clearer If I say "Instatiate my objects with a default value by NOT modifying the actual class definition, but to set it from context file". Is that more understandable?

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.