0 Replies Latest reply on Feb 19, 2002 8:58 AM by Andreas

    JAWS returns null

    Andreas Newbie

      Hello!

      I'm using JBoss 2.4.4_Tomcat-4.0.1.
      I've got a CMP with the following jaws.xml:


      true
      <enterprise-beans>

      <ejb-name>AnwendungBean</ejb-name>
      <table-name>ANWENDUNG</table-name>
      <remove-table>false</remove-table>
      <read-only>true</read-only>
      <cmp-field>
      <field-name>id</field-name>
      <column-name>SCHLUESSEL</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>name</field-name>
      <column-name>ANWENDUNG</column-name>
      </cmp-field>

      findByArtikel

      schluessel IN (SELECT ArtikelZuAnwendung.anw_schluessel
      FROM ArtikelZuAnwendung WHERE ArtikelZuAnwendung.artnr = {0}
      )


      <read-ahead>true</read-ahead>


      </enterprise-beans>


      In my test source I do the following:

      ArtikelLocal artikelLocal = ArtikelLocalHome.findByPrimaryKey(new AnwendungPK("11"));
      String id = artikelLocal.getId();
      String name = artikelLocal.getName();
      System.out.println(id + " " + name);

      there is some text in table anwendung, but the output is:

      [13:40:58,432,Default]11 null

      any idea??

      thanks alot