[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: 'no-select-before-insert'

2007-05-08 Thread swjackson
}catch( Exception e){ Throwable t = e.getCause(); Class tclass = t.getClass(); if( tclass.isAssignableFrom(IllegalArgumentException.class)){ System.err.println("illegal exception "); } } View the original post : http://www.jboss.com/

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: 'no-select-before-insert'

2007-05-07 Thread bartvh
This error log is indeed very annoying. But to me, the fact that a generic CreateException is thrown is even more problematic. How do I distinguish this from some other failure in the database? I would hope I do not need to interpret the exeception's message to distinguish. Shouldn't this code

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: 'no-select-before-insert'

2006-10-12 Thread jivkoto
The code that generates this log is from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand and more specifically in method protected void performInsert(EntityEnterpriseContext ctx) throws CreateException. Here is the snippet that is logging. ?.. | catch(SQLException e) | {