* Pavel Kolesnikov > I guess Jon's problem is just the fact that such weird SQL statement > was even generated - and it doesn't seem to be an oracle-problem :-) > > It would be helpful to see the original code (before running XDoclet) > and XDoclet generated code to find out if it's error of JBoss, XDoclet > or Jon :-)
Sure. I have two beans, and here is some of the entity bean. It is "getData()" that fails. public abstract class TelefonBean implements EntityBean { public TelefonBean() {} /** * @ejb:interface-method view-type="both" */ public abstract void setData(telefonData data); /** * @ejb:interface-method view-type="both" */ public abstract telefonData getData(); /** * @class Integer ejbCreate() creates a new bean * @ejb:create-method * @ejb:transaction type="Supports" */ public telefonPK ejbCreate(telefonData _data) throws CreateException { setLast_name(_data.getLast_name()); setData(_data); return null; } The following is the created code: private nb.api.telefonData dataHolder; public nb.api.telefonData getData() { if( dataHolder == null ) { try { dataHolder = new nb.api.telefonData(); dataHolder.setLast_name( getLast_name() ); dataHolder.setFirst_name( getFirst_name() ); dataHolder.setAddress( getAddress() ); dataHolder.setTelephone( getTelephone() ); dataHolder.setStatus( getStatus() ); } catch (Exception e) { throw new javax.ejb.EJBException(e); } } return dataHolder; } --------------------------------------------- If interesting, this is called from a session bean like this: Collection col=listAll(); for (Iterator i=col.iterator(); i.hasNext(); ) { Object o=i.next(); System.out.println("Object is " + o); telefonLocal tf = (telefonLocal) o; System.out.println("Before"); telefonData td=tf.getData(); System.out.println("Got line!"); >From the output I can see "Before" but not "Got line!" -- Jon Haugsand, <[EMAIL PROTECTED]> Norges Bank, <http://www.norges-bank.no> ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user