I don't really know much about JPA, but just a quick observation on the code
you posted:
Your code has line:
abstract class EnumvType(val et: Enumeration with EnumTrait) extends
UserType {
whereas JPA Demo has line:
abstract class EnumvType(val et: Enumeration with Enumv) extends UserType
{
On Thu, Jan 22, 2009 at 4:05 PM, Jorge Ortiz jorge.or...@gmail.com wrote:
I don't really know much about JPA, but just a quick observation on the
code you posted:
Your code has line:
abstract class EnumvType(val et: Enumeration with EnumTrait) extends
UserType {
whereas JPA Demo has
Ahh, I see what the problem might be. There was another change to EnumvType:
Replace this line:
return et.valueOf(value)
With this line:
return et.valueOf(value).getOrElse(null)
I'm sorry this is causing you so much trouble Chas. I made changes to
classes in JPADemo and didn't realize they
Thank you! Thank you! Thank you! Thank you! Thank you!
That worked. I should've seen it though as I'd already made that fix on
other sites. I don't know how I missed it. Tired, I guess.
Pressure off now for a moment at least.
Chas.
Jorge Ortiz wrote:
Ahh, I see what the problem might be.