-->
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: Middlegen 2.1 and custom UserTypes
PostPosted: Wed Dec 29, 2004 3:25 pm 
Beginner
Beginner

Joined: Mon Jun 21, 2004 2:41 pm
Posts: 40
I have created my own custom hibernate UserTypes for our Legacy database and application.

I have also extended the HibernateJavaTypeMapper (from middlegen.plugins.hibernate.HibernateJavaTypeMapper) to have the getPreferredJavaType return my own UserType if a string or int is returned by super (HibernateJavaTypeMapper).

This works great and as expected.

However when I view the table in middlegen and look at any columns that use my custom UserType the dropdown list for the Java type Middlegen gets confused. Since Middlegen does not know about the new UserType the dropdown list defaults to boolean.

The generated hmb.xml files are correct in that they have my user defined types in them.

Has anyone else done this?
Suggestions?

Thank you,
David


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 02, 2005 9:25 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I suggest you record the issue in the SourceForge Bug tracker so its not missed.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 10:56 am 
Beginner
Beginner

Joined: Mon Jun 21, 2004 2:41 pm
Posts: 40
For anyone searching the forums here is a link to the bug on sourceforge...

http://sourceforge.net/tracker/index.ph ... tid=415990


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.