Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2749 | minor | always | 06-23-08 12:03 | 07-02-08 15:58 | |
|
|||||
Reporter: | ferg | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.2.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.2.0 | ||
|
|||||
Summary: | 0002749: Amber @Basic Set | ||||
Description: |
(rep by Martin Aschoff) package manning.utils; import java.util.HashSet; /* * The Portfolio class represents a single portfolio of one of the users. * */ @Entity public class Portfolio { private String name; @ManyToOne ( targetEntity = manning.utils.User.class, optional=false ) private User owner; @Id @GeneratedValue private Long id; @org.hibernate.annotations.CollectionOfElements @JoinTable (name="portfolio_image", joinColumns=@JoinColumn(name="portfolio_id")) private Set<String> pics = new HashSet<String>(); public Set getPics() { return pics; } public void setPics(Set pics) { this.pics = pics; } public void addPic ( String pic ){ pics.add( pic ); } public Long getId() { return id; } private void setId(Long id) { this.id = id; } public User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner; } public String getName() { return name; } public void setName(String name) { this.name = name; } } |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|