-->
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 a CIDR (Classless Inter-Domain Routing) SQL type ?
PostPosted: Thu Jan 20, 2005 11:23 am 
Newbie

Joined: Wed Dec 01, 2004 12:27 pm
Posts: 11
Hibernate version:

2.1.3

Hello

I am using the sql type CIDR to store various ip ranges and perform builtin Postgresql functions like broadcast(), netmask() and such. When I use Middlegen to generate the POJOs and the mapping files, it does not seem to understand this type, then reverts to java.lang.Object. This causes an Hibernate property exception, saying this property has a "wrong number of columns".

After searching this forum, I think I need to set two property columns, one for the type, the other for the value. However I do not understand how to figure out the type of a CIDR object ?

Any advice appreciated :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 20, 2005 11:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You can use a custom UserType most likely.


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.