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
|