-->
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: Load new annotated entity runtime
PostPosted: Thu Jan 03, 2008 7:01 pm 
Newbie

Joined: Sun Mar 18, 2007 9:14 am
Posts: 4
Hello,

Can anyone tell me if it is possible to load a new annotated entity at runtime without restarting of the application?

Eg: I have an annotated class in the core application.

@Entity
class CustomerVersion1
@Id
private Long id;
private String name;
...

The application has started and it is running. In runtime the user has decided to add a new field into the customer entity eg:age

The program generates a new entity(which extends the previous version) CustomerVersion2 and compiles it into class. Then I would like to load this new entity into the system without restart the server.

@Entity
CustomerVersion2 extends CustomerVersion1
private Long age;
...

Is it possible to do it?


Can you offer an annotation based solution where customer can define new fields at runtime into the entity? I would not like to use an entity which keeps the user defined fields in a key value structure.


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.