1 package org.domain.seamtutorial.session; 2 3 import org.jboss.seam.annotations.Name; 4 import org.jboss.seam.annotations.Begin; 5 import org.jboss.seam.annotations.web.RequestParameter; 6 import org.jboss.seam.framework.EntityHome; 7 8 import org.domain.seamtutorial.entity.MyEntity; 9 10 @Name("myEntityHome") 11 public class MyEntityHome extends EntityHome<MyEntity> 12 { 13 @RequestParameter Long myEntityId; 14 15 @Override 16 public Object getId() 17 { 18 if (myEntityId == null) 19 { 20 return super.getId(); 21 } 22 else 23 { 24 return myEntityId; 25 } 26 } 27 28 @Override @Begin 29 public void create() { 30 super.create(); 31 } 32 33 }