This content has been marked as final.
Show 6 replies
-
1. Re: Persistence Problem after upgrading to 4.0.5GA
andydale Oct 30, 2006 2:40 AM (in response to schlaufuchs)I would try moving the annotations to the getter method(s). This is because i experienced the same problem/exception in 4.0.4GA when i was annotating at the variable declaration, moving it to the getter sloved the problem.
Andy -
2. Re: Persistence Problem after upgrading to 4.0.5GA
schlaufuchs Oct 30, 2006 3:14 AM (in response to schlaufuchs)Tried that, the result is
mappedBy reference an unknown target entity property: <packagename>.ArticleConsumeSchema.schema in <packagename>.ConsumeSchema.articleSchemas
schema is an inherited attribute - and that worked earlier.
Next suggestion, please?
Kai -
3. Re: Persistence Problem after upgrading to 4.0.5GA
andydale Oct 30, 2006 5:51 AM (in response to schlaufuchs)Try declaring ArticleConsumeSchemaTemplate as a mappedSuperclass (so long as you don't need the template class persisted)
Have a look here http://opensource.atlassian.com/projects/hibernate/browse/ANN-390 as it seems to be similar to your problem.
Andy -
4. Re: Persistence Problem after upgrading to 4.0.5GA
andydale Oct 30, 2006 5:56 AM (in response to schlaufuchs)Or you could try experimenting with the targetEntity in @OneToMany side ??
Andy -
5. Re: Persistence Problem after upgrading to 4.0.5GA
schlaufuchs Oct 30, 2006 8:27 AM (in response to schlaufuchs)Try declaring ArticleConsumeSchemaTemplate as a mappedSuperclass (so long as you don't need the template class persisted)
That seems to be the solution. I've annotated the class as MappedSuperclass AND Entity and it went through the Initializing. So I will do now some tests if it still does behave as before.
Thanks!
Kai -
6. Re: Persistence Problem after upgrading to 4.0.5GA
andydale Oct 30, 2006 8:31 AM (in response to schlaufuchs)I've annotated the class as MappedSuperclass AND Entity
I'm thinking that this will possibly cause some strange behaviour, you could also check out the inheritence strategies such as single table, or table per subclass
Cheers,
Andy