Hi Joe,
This problem will be fix in the version 2.0 of JOnAS which will be
available very soon.
Best regards.
H�l�ne.
Joe Gittings wrote:
>
> 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".
--
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www-frec.bull.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.bullsoft.com/ejb
_______________________________________________________________
----
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".