-->
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.  [ 3 posts ] 
Author Message
 Post subject: hbm mapping to array columns
PostPosted: Tue Jan 25, 2005 6:44 pm 
Newbie

Joined: Tue Jan 25, 2005 6:21 pm
Posts: 2
Hello,

The database is Postgres 7.4

I'm trying to map a database column of type boolean[] to a property
of type boolean[] in my hbm.xml file something like the following.
Is this possible and if so how do I do it. Thanks in advance.


public class{
...
private boolean[] reportMonths;
...
}


<hibernate-mapping>
...
<property name="reportMonths" type="boolean[]">
<column name="reportschedule" sql-type="boolean[]"/>
</property>
...
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 6:46 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Use a custom UserType


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 7:23 pm 
Newbie

Joined: Tue Jan 25, 2005 6:21 pm
Posts: 2
michael wrote:
Use a custom UserType



Great thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.