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 :)
|