Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #32582
| Path | csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Why is my class not enhanced |
| Date | Fri, 11 Sep 2015 21:48:30 -0400 |
| Organization | Aioe.org NNTP Server |
| Lines | 46 |
| Message-ID | <mt009f$nhg$1@speranza.aioe.org> (permalink) |
| References | <871te4uc1s.fsf@Equus.decebal.nl> |
| NNTP-Posting-Host | NIM2IeSPVd0kE3mU1mieXw.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.java.programmer:32582 |
Show key headers only | View raw
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:
> <plugin>
> <groupId>org.apache.openjpa</groupId>
> <artifactId>openjpa-maven-plugin</artifactId>
> <version>2.2.0</version>
> <configuration>
> <includes>nl/part1/part2/part3/**/*.class</includes>
> </configuration>
> <executions>
> <execution>
> <id>enhancer</id>
> <phase>process-classes</phase>
> <goals>
> <goal>enhance</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.openjpa</groupId>
> <artifactId>openjpa</artifactId>
> <version>${version.openjpa}</version>
> </dependency>
> </dependencies>
> </plugin>
>
> So I would expect my classes to be enhanced, but they are not. What
> could be the problem?
>
> I also tried to change:
> <includes>nl/part1/part2/part3/**/*.class</includes>
> to:
> <includes>nl/part1/part2/part3/*.class</includes>
> but that did not help.
I don't know OpenJPA, but a wild guess:
<includes>**/nl/part1/part2/part3/**/*.class</includes>
Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Why is my class not enhanced Cecil Westerhof <Cecil@decebal.nl> - 2015-09-11 18:59 +0200
Re: Why is my class not enhanced Arne Vajhøj <arne@vajhoej.dk> - 2015-09-11 21:48 -0400
Re: Why is my class not enhanced Cecil Westerhof <Cecil@decebal.nl> - 2015-09-12 14:07 +0200
csiph-web