Anonymous | Login | Signup for a new account | 12-17-2024 08:32 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002749 | [Resin] | minor | always | 06-23-08 12:03 | 07-02-08 15:58 | ||||
Reporter | ferg | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product 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; } } |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |