-->
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: Help Needed!!!
PostPosted: Thu Jan 19, 2006 10:53 pm 
Beginner
Beginner

Joined: Sat Dec 03, 2005 11:12 am
Posts: 27
Hi,

I have a POJO with this getter/setter

public URL getFile() {return this.file }
public void setFile() {this.file = file }

I have a custom user type defined for URL which maps to the database which works fine. If getFile() returns a collection of url's then how would you map to the database??

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 11:12 pm 
Regular
Regular

Joined: Tue Dec 14, 2004 5:21 am
Posts: 104
Location: india
there is not much difference for a used defined type compared to mapping an ordinary collection. just use <set>,<list> ... to map your data once the use defined class is in place

_________________
sHeRiN
thanks for your ratings ...... :)


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.