[hibernate-dev] CascadeStyle, CascadeType etc
Steve Ebersole
steve at hibernate.org
Mon Jun 27 18:15:36 EDT 2011
On 06/24/2011 09:34 AM, Hardy Ferentschik wrote:
> On Fri, 24 Jun 2011 15:36:28 +0200, Steve Ebersole<steve at hibernate.org>
> wrote:
>
>
>> First, I think CascadeType should be changed up a bit. Currently it
>> contains some "aggregate" values (ALL, ALL_DELETE_ORPHAN). I'd like to
>> keep this limited to just the "atomic" cascade-types. Rather than the
>> map lookups here based on the enum value, I'd much rather see the enum
>> expose that "alternate value". For example:
>> https://gist.github.com/1044751
>
> Ok. The cascade style to cascade type map is new to me anyway.
> Btw, why do you prefer the "enum expose that "alternate value"" approach?
I don't know to be honest. It just "feels" right to me (remember I have
a BA, not a BS lol). I think because it is a one-to-one corelation.
--
Steve Ebersole <steve at hibernate.org>
http://hibernate.org
More information about the hibernate-dev
mailing list