-->
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: How to store a structure C# to a varchar column
PostPosted: Fri Jan 27, 2006 9:35 am 
Newbie

Joined: Fri Jan 27, 2006 9:00 am
Posts: 2
Hello,

I would want to store the Point class in one varchar column with this format : "(x,y)", and the x value in a column, and the y value in another column. In fact, I would want to store the string which is given by the ToString() method.

How do I do ? And what mapping can I use ?

Thank you for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 27, 2006 9:40 am 
Senior
Senior

Joined: Thu Aug 25, 2005 3:35 am
Posts: 160
create a usertype.

See the nhibernate solution for many examples how to do this.


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.