How should I use Enums in Openjpa entities?

Go To StackoverFlow.com

0

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.

2009-06-16 14:54
by Vasil
Does the error state which class is missing - Kathy Van Stone 2009-06-16 20:55
(Sorry, it looks like you answered that.) Are there any wrapped exceptions - Kathy Van Stone 2009-06-16 20:56


1

We had the same problem.

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

2009-06-17 17:08
by Michael Wiles


0

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

2009-06-16 21:00
by Kathy Van Stone
Ads