Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: Why is my class not enhanced Date: Sat, 12 Sep 2015 14:07:49 +0200 Organization: Decebal Computing Lines: 53 Message-ID: <87twqzsuwa.fsf@Equus.decebal.nl> References: <871te4uc1s.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="4940"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/V9a6HbqWqwEpUMQUsUrYGA4vHohqfkWg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:nUypIZ8aLv/S/N1CCLqTPj1WL4E= sha1:Ijx6gNRrmp0m90VI7jS4KtTscLE= X-Homepage: http://www.decebal.nl/ Xref: csiph.com comp.lang.java.programmer:32583 On Saturday 12 Sep 2015 03:48 CEST, Arne Vajhøj wrote: > On 9/11/2015 12:59 PM, Cecil Westerhof wrote: >> I can create an EntityMangerFactory and an EntityManger. But when I >> do an em.find I get: >> org.apache.openjpa.persistence.ArgumentException: The type "class >> nl.part1.part2.part3.NotifyMessage" has not been enhanced. >> >> But I have in my pom.xml: >> >> org.apache.openjpa >> openjpa-maven-plugin >> 2.2.0 >> >> nl/part1/part2/part3/**/*.class >> >> >> >> enhancer >> process-classes >> >> enhance >> >> >> >> >> >> org.apache.openjpa >> openjpa >> ${version.openjpa} >> >> >> >> >> So I would expect my classes to be enhanced, but they are not. What >> could be the problem? >> >> I also tried to change: >> nl/part1/part2/part3/**/*.class >> to: >> nl/part1/part2/part3/*.class >> but that did not help. > > I don't know OpenJPA, but a wild guess: > > **/nl/part1/part2/part3/**/*.class No, that does not make a difference. Thanks anyway. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof