Skip to content

Commit

Permalink
Further changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbogoevici authored and pmuir committed May 28, 2012
1 parent fade3bc commit 7821c8e
Show file tree
Hide file tree
Showing 4 changed files with 330 additions and 269 deletions.
Expand Up @@ -11,14 +11,16 @@
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
* Contains price categories - each category represents the price for a ticket
* in a particular section at a particular venue for a particular event, for a
* particular ticket category.
*
* @author Shane Bryzak
*/
@Entity
@Entity @JsonIgnoreProperties("show")
@Table(uniqueConstraints = @UniqueConstraint(columnNames = {"SECTION_ID","SHOW_ID","TICKETCATEGORY_ID"}))
public class PriceCategory implements Serializable {
private static final long serialVersionUID = 6649855367578381386L;
Expand Down
Expand Up @@ -25,7 +25,7 @@
*
* @author Shane Bryzak
*/
@Entity @JsonIgnoreProperties("priceCategories")
@Entity
public class Show implements Serializable {

private static final long serialVersionUID = -108405033615497885L;
Expand All @@ -45,7 +45,7 @@ public class Show implements Serializable {
@NotEmpty
private Set<Performance> performances = new HashSet<Performance>();

@OneToMany(mappedBy = "show", cascade = ALL)
@OneToMany(mappedBy = "show", cascade = ALL, fetch = EAGER)
@NotEmpty
private Set<PriceCategory> priceCategories = new HashSet<PriceCategory>();

Expand Down

0 comments on commit 7821c8e

Please sign in to comment.