Firstly, I should say I have been very impressed by Jonas's ability to deal
with polymorphism when deploying. So far, I haven't had any problems,
despite using some quite complex behaviour. However, this seems to cause a
problem:
public class DistributionReferencePK extends ReferenceRecordPK
{
public String GTBLinkGeogKey;
<snip>
}
public abstract class ReferenceRecordPK implements java.io.Serializable
{
public int TaxonKey;
public int BibliographyEntryKey;
<snip>
}
When I look at the generated code in
JOnASDistributionReferenceBeanDistributionReferenceHome.java, the create()
method has this code:
..............
pk = new uk.org.rbgkew.sepasal.ejb.reference.DistributionReferencePK();
pk.GTBLinkGeogKey = eb.GTBLinkGeogKey;
ctx.setPrimaryKey(pk);
ejbobj.createData();
..............
So GenIC appears not to be picking up the fields in the PK base class. I
think it should do, as they are declared in the properties file as follows:
db.Field.TaxonKey GTBLinkTaxKey
db.Field.GTBLinkGeogKey GTBLinkGeogKey
db.Field.BibliographyEntryKey GTBLinkBiblKey
In all other respects, the generated code appears to be correct. Any
thoughts?
Joe Gittings
=====================================================================
Joe Gittings, Royal Botanic Gardens, Kew
Hanover House, Kew, Richmond, Surrey TW9 3AB
[EMAIL PROTECTED]
+44 181 332 5712
fax: +44 181 332 5736
----
This list is cross-posted to two mail lists. To unsubscribe,
follow the instructions below for the list you subscribed to.
For objectweb.org: send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe ejb-container-group".
For enhydra.org: send email to [EMAIL PROTECTED] and include
in the body of the message "unsubscribe ejb-container-group".