-->
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.  [ 1 post ] 
Author Message
 Post subject: How to save a list of enum object?
PostPosted: Mon Jul 07, 2008 3:33 am 
Newbie

Joined: Mon Jul 07, 2008 3:23 am
Posts: 1
@Entity
@Table(name = "ts_attr_person")
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
public class TsAttrPerson extends GenericModel {

@Enumerated(EnumType.STRING)
@Column(name = "city")
private City city;

public City getCity() {
return city;
}

public void setCity(City city) {
this.city = city;
}

}

above code can save a city , but now i need to save a list of city , and i dont have any idea how to do it , anyone can help me , thx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.