1 Reply Latest reply on Dec 24, 2010 7:03 AM by omid pourhadi

    Rising Event to update an entity

    omid pourhadi Apprentice

      Hi,
      i create a bean use for running an event that updtaes an entity, the event runs but entity does not update


      SetStatus.java



      @Name("statusSetter")
      public class SetStatus extends EntityController {
      
      @In
      Movie movie;
      
      @Observer("setMovieStatus")
      synchronized public void setMovieStatus(Movie m){
      movie = m;
      movie.setStatus("Buy");
      getEntityManager().merge(movie);
      }
      
      
      }



      i pass movie from entityHome as parameter