According to Suns JavaBeans spec at http://java.sun.com/products/javabeans/docs/beans.101.pdf (section 8.3.2)
both the getDefault() and isDefault() methods are valid for boolean properties. The latter is preferred though, and i have never seen the first used except in OJB. Yet another thing for the ToDo-list ? :) /Soee -----Oprindelig meddelelse----- Fra: Mahler Thomas [mailto:[EMAIL PROTECTED]] Sendt: 3. september 2002 11:03 Til: 'OJB Users List' Emne: AW: getters/setters naming question Hi, > -----Urspr�ngliche Nachricht----- > Von: Andrey Chernyh [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 3. September 2002 10:41 > An: OJB Users List > Betreff: getters/setters naming question > > > Hello! > > I have field named "default" > I use PersistentFieldClass=org.apache.ojb.broker.metadata.Persistent > FieldPropertyImpl in OJB.properties > > I want my access methods to be called > isDefault() > setDefault(), > but now I must call them setIsDefault() and getIsDefailt() because of > PersistentFieldClass rules. Not because of our rules but because of JavaBeans rules. > > Is there any solution for this case? You use a BeanInfo class to declare spcif getter/setter methods. cheers, Thomas > Is it possible to use different PersistentFieldClass settings for > different classes? > > Thanks. > > > -- > Best regards, > Andrey mailto:[EMAIL PROTECTED] > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
