com.darwinsys.model.MiniRecipe Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of darwinsys-api Show documentation
Show all versions of darwinsys-api Show documentation
Ian Darwin's assorted Java stuff,
assembled as an API.
package com.darwinsys.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
/**
* A subset of a Cookbook Recipe object, for demos that need it
*/
@Entity
public class MiniRecipe {
@Id
int id;
String title;
@ManyToOne(fetch = FetchType.LAZY)
//@NotNull
@JoinColumn(name = "owner")
MiniPerson owner;
Date creationDate;
}