|
|
|
|
Re: java.lang.NoSuchMethodError: xxx._persistence_checkFetched(Ljava/lang/String;)V [message #714138 is a reply to message #714132] |
Tue, 09 August 2011 21:47 |
|
A MappedSuperClass also does not get weaved (woven?) if there is no entity subclass present during weaving.
A MappedSuperClass is not ignored for weaving if itself and a subclass entity are in the persistence.xml during weaving because the MappedSuperClass gets marked for weaving only if it is found in the superclass hierarchy of an entity. So if you have your base classes in one jar/project and your entities in another jar/project and you compile the first jar on its own, you must have a dummy entity in the first jar to enable weaving of the MappedSuperClass; both must be in a "weaving only" persistence.xml.
[Updated on: Tue, 09 August 2011 21:52] Report message to a moderator
|
|
|
|
(no subject) [message #714145 is a reply to message #714132] |
Tue, 09 August 2011 21:47 |
|
A MappedSuperClass also does not get weaved (woven?) if there is no entity subclass present during weaving.
A MappedSuperClass is not ignored for weaving if it and a subclass entity are in the persistence.xml during weaving. So if you have your MappedSuperClass without any subclassed entity in one jar/project and your entities in another jar/project and you compile the first project on its own, you must have a dummy "weaving helper" entity in the first jar to enable weaving of the MappedSuperClass. This dummy entity should be excluded from the first jar and the "real application" persistence.xml.
See http://www.eclipse.org/forums/index.php/t/175165/
[Updated on: Tue, 09 August 2011 22:18] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03479 seconds