5 Replies Latest reply on Jun 12, 2008 4:29 PM by scott duke

    Using Home Objects in Action Beans

    scott duke Novice

      I have 2 home objects that when I create a new instance extra fields are automatically populated.



           @Override
           protected InFiles createInstance() {
                InFiles inFiles = super.createInstance();
                inFiles.setStatus(InFileStatus.NEW);
                inFiles.setCreatedOn(new Date());
                return inFiles;
           }
      



      I am wanting to write an action bean importing/parsing data into these entites. Is possible to write the bean in such a way as to use the home objects?


      I would rather use the home objects since I would like to keep  all initialization information in one place rather than multiple places. This is incase I later come back and add more fields to he entites.