-->
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 two tables with columns of different types
PostPosted: Mon Oct 03, 2005 4:03 pm 
Beginner
Beginner

Joined: Wed Sep 17, 2003 10:25 am
Posts: 36
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.0.4

Mapping documents:
N/A

Code between sessionFactory.openSession() and session.close():
N/A

Full stack trace of any exception that occurs:
N/A

Name and version of the database you are using:
Sybase

The generated SQL (show_sql=true):
N/A

Debug level Hibernate log excerpt:

Can I map between two tables (one-to-many on one side and many-to-one on the other) when the columns mapped are of differrent types? One side has a numeric value and the other is a string with 0's prepending the save value. Any examples posted anywhere to help me with this?

Are UserTypes the way to go with this?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 05, 2005 10:36 am 
Beginner
Beginner

Joined: Wed Sep 17, 2003 10:25 am
Posts: 36
Just want to bring this up one more time. I went through the documentation and Hibernate in Action book. No example on how to associate two table on columsn of different types. I have come up with solutions, but they are ugly. Anything elegant that I can just do using mapping files and UserTypes?

Thanks.


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.