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.  [ 2 posts ] 
Author Message
 Post subject: mapping java classes on hibernate
PostPosted: Thu Oct 05, 2006 10:20 am 
Newbie

Joined: Thu Oct 05, 2006 10:14 am
Posts: 1
I want to map some java classes (like java.awt.Point) on a mapping file. But, also it must be in a list. For example:

public class Example {
private java.util.List list = new ArrayList();
// ...
}

where list is a List object where each element is a java.awt.Point object.

Thanks, and sorry my english.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 05, 2006 10:29 am 
Regular
Regular

Joined: Tue Sep 26, 2006 11:37 am
Posts: 115
Location: Sacramento, CA
Hibernate queries will return a list. You just map your Point class and then use HQL or Criteria API to access your data. If your model defines a top level class which has a List<Point> member then you can map the top level class and use hibernate Collections.

So your problem is easy to solve, this will become more apparent as you start to write the code/mapping files. If you have more specific problems at that time please ask and you may get more specific answers :)

Marius


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

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.