Exemplo n.º 1
0
 public static Actor example2() {
   Actor actor = new Actor();
   actor.setId(2);
   actor.setFName("Troy");
   actor.setLName("MacLure");
   return actor;
 }
Exemplo n.º 2
0
 public static Actor example1() {
   Actor actor = new Actor();
   actor.setId(1);
   actor.setFName("Stephen");
   actor.setLName("Baldwin");
   return actor;
 }
Exemplo n.º 3
0
 public static Actor example5() {
   Actor actor = new Actor();
   actor.setId(5);
   actor.setFName("Tom");
   actor.setLName("Green");
   return actor;
 }
Exemplo n.º 4
0
 public static Actor example3() {
   Actor actor = new Actor();
   actor.setId(3);
   actor.setFName("Drew");
   actor.setLName("Barrymore");
   return actor;
 }
Exemplo n.º 5
0
  public static Actor example4() {
    // include in populate
    Film film = new Film();
    film.setName("Scream 4");
    film.setDescription("Scream 3 was the last one!  What's going on?");
    film.setDuration(new java.math.BigDecimal(2));

    Actor actor = new Actor();
    actor.setId(4);
    actor.setFName("Nev");
    actor.setLName("Campbell");

    film.addActor(actor);
    return actor;
  }