Mantis Bugtracker
  

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

- Relationships

- Notes
(0003237)
ferg
07-02-08 15:58

jpa/1a0[0-5]
 

- Issue History
Date Modified Username Field Change
06-23-08 12:03 ferg New Issue
07-02-08 15:58 ferg Note Added: 0003237
07-02-08 15:58 ferg Assigned To  => ferg
07-02-08 15:58 ferg Status new => closed
07-02-08 15:58 ferg Resolution open => fixed
07-02-08 15:58 ferg Fixed in Version  => 3.2.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker