-->
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: type mapping for key or properties
PostPosted: Wed Jan 31, 2007 11:17 am 
Beginner
Beginner

Joined: Wed Feb 23, 2005 11:32 am
Posts: 25
Location: Austria/Vienna
We use Persistant-Objects with keys as "String" like this:

public class TestPOJO {
private String key = null;
}

and a mapping with string as type:
<id name="key" type="string" column="test_id".. >
</id>

but our database uses integer, big-integer our guid as type.

is this conversion from integer or bint to string correct and valid ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 01, 2007 7:30 am 
Beginner
Beginner

Joined: Wed Nov 15, 2006 4:25 am
Posts: 21
Hai

I hope the conversion is worng and invalid.


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.