-->
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: Could not get a field value by reflection getter of ....
PostPosted: Mon Dec 17, 2012 10:55 am 
Newbie

Joined: Mon Dec 17, 2012 8:35 am
Posts: 1
Hi guys,

I have a problem and I cannot figure out what is going wrong.

I have an application that generates code and hibernate annotations as well.

When I use the generated code outside the application it works fine but when I used it inside the application, it gives an error: PropertyAccessException: could not get a field value by reflection getter of ....
It gives the error on the first OneToOne annotation that processes.

The field has simply: @OneToOne(cascade = CascadeType.ALL)

Additional details:
- inside the application I use a custom classloader to load the generated classes.
- the tables are generated correctly, meaning that the field is a foreign key..
- create method in SchemaExport generates the same code inside the application and outside

Thank you in advance :)


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.