tags:

views:

223

answers:

2

I'm trying to use an enum field in an openjpa entiy. Everything works fine unitl I try to enhance my entities which breaks with a ClassNotFound exception for the Enum type. I'm using the openjpa maven plugin to enhance the entities and the enum is declared public and is on the classpath. I'm not sure what I'm missing here.

A: 

It looks like it may be a bug -- see this bug report.

Kathy Van Stone
+1  A: 

We had the same problem.

You need to include the missing class in the classpath you use when you define the task.

Michael Wiles