Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed May 1, 2012
1 parent 2c9f62d commit fcf4d81
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 17 deletions.
5 changes: 2 additions & 3 deletions pom.xml
Expand Up @@ -148,7 +148,7 @@


<!-- The next set of dependencies are for Errai, which we use for
the TicketMonster admin console -->
the TicketMonster booking monitor -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-bus</artifactId>
Expand Down Expand Up @@ -186,7 +186,7 @@
<artifactId>mvel2</artifactId>
</dependency>

<!-- CDI Integration Modules -->
<!-- CDI/ Errai Integration Modules -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-client</artifactId>
Expand Down Expand Up @@ -222,7 +222,6 @@
<artifactId>gwt-dev</artifactId>
<scope>provided</scope>
</dependency>
<!-- End of Errai dependencies -->

<!-- Now we declare any tools needed -->

Expand Down
Expand Up @@ -19,12 +19,11 @@
* @author Marius Bogoevici
* @author Pete Muir
*/
@SuppressWarnings("serial")
@Embeddable
@Portable
public class Address implements Serializable {

private static final long serialVersionUID = -1;

/* Declaration of fields */
private String street;
private String city;
Expand Down
Expand Up @@ -4,7 +4,6 @@
import static javax.persistence.FetchType.EAGER;
import static javax.persistence.GenerationType.IDENTITY;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
Expand Down Expand Up @@ -35,12 +34,11 @@
*
* @author Marius Bogoevici
*/
@SuppressWarnings("serial")
@Entity
@Portable
public class Booking implements Serializable {

private static final long serialVersionUID = -1;

/* Declaration of fields */

/**
Expand Down
Expand Up @@ -12,7 +12,6 @@
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;
import org.jboss.errai.common.client.api.annotations.Portable;

/**
Expand Down
Expand Up @@ -3,8 +3,6 @@
import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
Expand Down
Expand Up @@ -18,8 +18,6 @@
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.NotNull;


import org.hibernate.validator.constraints.NotEmpty;
import org.jboss.errai.common.client.api.annotations.Portable;

/**
Expand Down
Expand Up @@ -10,7 +10,6 @@
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.jboss.errai.common.client.api.annotations.Portable;

/**
Expand Down
Expand Up @@ -57,6 +57,8 @@ protected Predicate[] extractPredicates(MultivaluedMap<String,
public Map<Long,List<TicketPriceCategory>> getPricing(@PathParam("showId") Long showId) {
Query query = getEntityManager().createQuery("select pc from PriceCategory pc where pc.show.id = :showId order by pc.section.id");
query.setParameter("showId", showId);

@SuppressWarnings("unchecked")
List<TicketPriceCategory> priceCategories = query.getResultList();

Map<Long, List<TicketPriceCategory>> priceCategoryMap = new LinkedHashMap<Long, List<TicketPriceCategory>> ();
Expand Down
Expand Up @@ -18,9 +18,7 @@
import java.util.Map;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;
import javax.persistence.EntityManager;

import org.jboss.jdf.example.ticketmonster.model.MediaItem;
import org.jboss.jdf.example.ticketmonster.model.MediaType;
Expand Down
Expand Up @@ -7,7 +7,6 @@
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;

import org.jboss.jdf.example.ticketmonster.model.Booking;
import org.jboss.jdf.example.ticketmonster.model.Performance;
import org.jboss.jdf.example.ticketmonster.model.Seat;
import org.jboss.jdf.example.ticketmonster.model.Section;
Expand All @@ -16,6 +15,7 @@
/**
* @author Marius Bogoevici
*/
@SuppressWarnings("serial")
public class SeatAllocationService implements Serializable {

@Inject
Expand Down

0 comments on commit fcf4d81

Please sign in to comment.