//$Id: SpaceShip.java 14736 2008-06-04 14:23:42Z hardy.ferentschik $
package org.hibernate.ejb.test.query;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedNativeQueries;
import javax.persistence.NamedNativeQuery;

/**
 * @author Emmanuel Bernard
 */
@Entity
@NamedNativeQueries( { @NamedNativeQuery(name = "implicitSample", query = "select * from SpaceShip s where s.name='YuBlue' ", 
		resultClass = org.hibernate.ejb.test.query.SpaceShip.class) })
public class SpaceShip {
	private String name;
	private String model;
	private Long id;

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId( Long id ) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName( String name ) {
		this.name = name;
	}

	public String getModel() {
		return model;
	}

	public void setModel( String model ) {
		this.model = model;
	}

}
