"no cmp field defined in cmp ejb"

From: Andrea Sansottera (andrea.sansottera_at_fastwebnet.it)
Date: 07/16/04

  • Next message: aaa: "Multiple Permanent Java, J2EE Openings in Charleston, SC"
    Date: Fri, 16 Jul 2004 16:26:24 +0200
    
    

    I'm so boring I know... this is my problem...

    I wrote the following entity bean, it rappresents something like this:

    primary key id (managed by the container)
    foreign key formulation_product (cmp relationship field)
    foreign key ingredient (cmp relationship field)

    public abstract class FormulationComponentBean implements EntityBean {

    /* Relationship field getters */
            public abstract FormulationProduct getFormulationProduct();
            public abstract Ingredient getIngredient();
    /* Relationship field setters */
            public abstract void setFormulationProduct(FormulationProduct product);
            public abstract void setIngredient(Ingredient ingredient);

    [...create methods and others ejb* methods...]

    }

    When I try to autogenerate database table with Sun Deploytool I get this
    error message: "no cmp field defined in cmp ejb".

    I really do not need any persistent field, but only relationship field...
    should I insert a fake persisten field just to satisfy that silly utility?
    Or I am wrong on something?

    Thanks a lot for any help...


  • Next message: aaa: "Multiple Permanent Java, J2EE Openings in Charleston, SC"

    Relevant Pages

    • "no cmp field defined in cmp ejb"
      ... I wrote the following entity bean, ... "no cmp field defined in cmp ejb". ... I really do not need any persistent field, ...
      (comp.lang.java.developer)
    • no cmp field defined in cmp ejb
      ... I wrote the following entity bean, ... "no cmp field defined in cmp ejb". ... I really do not need any persistent field, ...
      (comp.lang.java.programmer)