[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread Jorge Ortiz
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 {

[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread David Pollak
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

[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread Jorge Ortiz
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

[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread Charles F. Munat
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.