Re: Inner enum cannot be used as literal in JPQL

2014-01-06 Thread twelveeighty
feature request, but >> not a bug. As you mentioned, if you define this enum separately, >> everything works as expected, right? Is there some reason why that >> approach can't be done? >> >> Kevin >> >> >> >> On Sat, Jan 4, 2014 at 4:50

Inner enum cannot be used as literal in JPQL

2014-01-04 Thread twelveeighty
Can someone confirm whether or not this is a known issue, or if this is a known limitation? When I define an enum as part of my entity class, I am not able to use its values as literals in a JPQL statement: package com.myorg.jpa; public Foo { public enum FooType { FOO, BAR } @Enu

Re: merge() doesn't refresh many-to-one members unless attribute is called explicitly?

2011-06-20 Thread twelveeighty
hip to a detached RelatedObject. The merge operation isn't > cascaded by default, so the rules become a little muddy. > > Adding CascadeType.MERGE will also solve the problem, is that an > acceptable > solution for you? > > -mike > > On Sun, Jun 19, 2011 at 9:

merge() doesn't refresh many-to-one members unless attribute is called explicitly?

2011-06-19 Thread twelveeighty
Since this sounds like a basic operation that fails for me, I'm inclined to think I'm doing something wrong, but I can't find anything similar in the FAQ or online, so please tell me what I am missing here. If I use merge() to insert a new entity that has a many-to-one relationship to another enti