You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Ajitesh Das <ad...@zona.net> on 2003/01/20 11:24:52 UTC

question: OJB and Java bean

hi:
  Just a newbie question on business object requirement for ojb.
do I need to have explisit properties like : 
          String a ; 
          String b ; 
        so on ....
Or  my java bean structure is sufficient: 
     class MyObj { 
          private Hashtable valueSource;
 
          public String getA () 
          { return valueSource.get("A");}
          public void setA ( String val ) 
          { valueSource.put("A", val);} 
         :::::::::
   } 
 
Although, I have described {a,b,...} are the fields in MyObj class in the repository.xml.
Tia,