-->
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: Map SQL Typ SET
PostPosted: Tue May 27, 2008 8:57 am 
Newbie

Joined: Tue May 27, 2008 7:59 am
Posts: 1
Hallo,

in meinem bestehenden Datenbankschema existiert eine Tabelle Article mit einem Attribut topics vom Typ set('ship','sugar','coffee','money-supply').
Die zugehörige Article Javaklasse soll ebenfalls ein Attribut topic verwenden.

Welchen Typ muss dieses Attribut haben und welche Annotation muss ich verwenden, damit dies zu dem SQL-Typ Set "passt"?

Gruß

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 30, 2008 12:40 pm 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
Es gibt dafür keinen Typen, das ist Datenbank spezifisch.
vermutlich ist ein ein custom usertype erforderlich -> Dokumentation dazu bzw. test package des hibernate core.

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


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.