-->
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.  [ 3 posts ] 
Author Message
 Post subject: how can i modify a annotation when i load the class
PostPosted: Fri Mar 12, 2010 7:52 am 
Newbie

Joined: Fri Mar 12, 2010 7:21 am
Posts: 2
Hello,
I have a session factory(AnnotationSessionFactoryBean) how can i modify the annotation @GeneratedValue( generator = "something_seq", strategy = GenerationType.AUTO ) from all casses after i loaded the classes in the session factory.
If i can't ..... how can i modify the annotation when i load the classes in the session factory?
(I know that i can't modify the annotation at runtime....but i am thinking that i can jump over it when i am setting the annotationConfiguration or something like that any ideea.)


Last edited by _MiLi_ on Fri Mar 12, 2010 8:32 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: how can i modify a annotation when i load the class
PostPosted: Fri Mar 12, 2010 8:31 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Annotations are compiled into byte-code and cannot be modified at runtime.


Top
 Profile  
 
 Post subject: Re: how can i modify a annotation when i load the class
PostPosted: Fri Mar 12, 2010 8:44 am 
Newbie

Joined: Fri Mar 12, 2010 7:21 am
Posts: 2
ok, but when i setConfigurationClass can i skip this annotation?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.