-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: 2 seemingly intractable problems
PostPosted: Tue Apr 01, 2008 10:45 pm 
Newbie

Joined: Tue Mar 04, 2008 12:12 am
Posts: 7
Location: Wellington, New Zealand
1: Immutable fields,
I have business object which have fields that are supposed to be immutable.
Adding a setter is WRONG, and using access ="field" doesn't work with the JVM security manager enabled. (neither do private default constructors)
I need a way for the mapping to set these object up using a constructor.
A custom type isn't workable because these objects also contain Sets;

(incidentally, a method comparable to Query.list() that returned a set would be really nice)

2: Recursive Collections.
I would really really like to be able to store a set of lists, or a map of sets. I have a couple of places where this would be a much better solution than the map of objects that contain only a set, which I currently use, and would much rather I didn't.

While I'm at it, I think I'll read off the whole laundry list.

Why cant I pass the org.hibernate.cfg.Configuration object a mapping object? giving it an xml string seems kinda stupid.

and meaningful xml parsing error messages.
When I add a key to a tag that doesn't support it, it should tell me that the key is not valid in that context, instead of insisting that the new (wrong) key MUST exist and MUST have a value.

sigh.
so close, and yet, so frustrating.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.