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.
|
|