public class CreateMovie extends com.mediamania.MediaManiaApp
Fields Summary
Constructors Summary
Methods Summary
public void
execute()
Calendar cal = Calendar.getInstance();
cal.clear();
cal.set(Calendar.YEAR, 1997);
Date date = cal.getTime();
Movie movie = new Movie("Titanic", date, 194, "PG-13",
"historical, drama");
pm.makePersistent(movie);