-->
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.  [ 5 posts ] 
Author Message
 Post subject: Adding attributes runtime
PostPosted: Tue Jun 26, 2007 7:33 am 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
Hi,
Is there anyway attributes can be added to an Entity POJO at runtime without having to recompile the code
For example, suppose my Entity POJO is Person and I wish to add the attribute shoesize to Person but due to the way my project is deployed I can't recompile the code.
Is there anyway to do this?
Rgds


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 29, 2007 10:42 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
You already have the getter?
Then using an XML mapping will work, but you need to redeploy the application.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 1:25 pm 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
emmanuel wrote:
You already have the getter?
Then using an XML mapping will work, but you need to redeploy the application.

No, I don't already have a getter.
This is a project requirement to be able to add attributes to the business entity which will be persisted without having to recompile code.
Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 2:38 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Use Groovy?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 03, 2007 5:46 am 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
Thanks will look into that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

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.