This is what i had in my bean:

** @ejb.persistence column-name = "ST_ID"
* @ejb.interface-method view-type = "both"
* @return
*/
abstract public Integer getSampTableId();
/** @ejb.interface-method view-type = "both" */
abstract public void setSampTableId(Integer sampTableId);


/** @ejb.persistence column-name = "PG_ID"
* @ejb.interface-method view-type = "both"
* @return
*/
abstract public Integer getProductGroupId();
/** @ejb.interface-method view-type = "both" */
abstract public void setProductGroupId(Integer productGroupId);


/** @ejb.persistence column-name = "SAS_ID"
* @ejb.interface-method view-type = "both"
* @return
*/
abstract public Integer getSasId();
/** @ejb.interface-method view-type = "both" */
abstract public void setSasId(Integer sasId);


public SasAssignmentPK ejbCreate(SampTableLocal sampTable, ProductGroupLocal 
productGroup, SampAttributeSetLocal sas) throws CreateException {
setProductGroupId(productGroup.getId());
setSasId(sas.getId());
setSampTableId(sampTable.getId());
return null;
}


public void ejbPostCreate(SampTableLocal sampTable, ProductGroupLocal productGroup, 
SampAttributeSetLocal sas) throws CreateException {
/*
setSampTable(sampTable);
setProductGroup(productGroup);
setSampAttributeSet(sas);
*/
}


And the exception was:

javax.ejb.TransactionRolledbackLocalException: Internal error setting instance field 
sampTableId; CausedByException is:
de.keywork.moc.sampling.pk.SasAssignmentPK; CausedByException is:
Internal error setting instance field sampTableId; CausedByException is:
de.keywork.moc.sampling.pk.SasAssignmentPK
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:204)
... bla-bla-bla


Any ides after reading this long story? :-)



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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828814


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to