Commit e3de28dd by Tuomas Riihimäki

Fixed the last @NamedQuery problem

1 parent 828df496
......@@ -20,10 +20,9 @@ import javax.persistence.Version;
*/
@Entity
@Table(name = "locations")
@NamedQueries( {
@NamedQueries({
@NamedQuery(name = "Location.findAll", query = "SELECT l FROM Location l"),
@NamedQuery(name = "Location.findByLocationName", query = "SELECT l FROM Location l WHERE l.locationName = :name") })
@NamedQuery(name = "Location.findByLocationName", query = "SELECT l FROM Location l WHERE l.name = :name") })
public class Location implements ModelInterface {
private static final long serialVersionUID = 1L;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!