Hi everybody, 

I'm tryng with seam gen, seam  seam generate-entities.
I'm making some experiment with a class that extends EntityHome and overrides 
persist() in this way (I need to catch errors): 

Code: 
        
        @Override 
        @Transactional
        public String persist() {
                try {
                        return super.persist();
                } catch (Exception e) {
                        return "error";
                }
        }
         


When I insert a record that violates a constraint, I catch the exception but I 
get an error on XXXEdit.seam. Where does that come from ? How can I eliminate 
it ? 

Thanks in advance for helping 

Ricardo Alba

Note: Excuse my English


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994677#3994677

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994677
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to