Yes, you can. Werner
Kreyßel wrote: > hello, > > has anyone a idea how to enable field mapping only for xml or only for sql. > > Example: > > I have a class > > Container { > int a; > > // database field > public void setA(int a){this.a=a} > public int getA(){return a;} > > // only xml fields > public void setXmla(boolean xmla){this.a = a | 1;} > public int getXmla(){return a & 1 == 1;} > > public void setXmlb(boolean xmla){this.a = a | 2;} > public int getXmlb(){return a & 2 == 2;} > > public void setXmlc(boolean xmla){this.a = a | 4;} > public int getXmlc(){return a & 4 == 4;}} > ... > ... > } > > Can I create a mapping that only the attribute a maps to/from database and > xmla-c attributes maps to/from xml? > > -- > > Best regards > > Conny Kreyßel > INTER-FORUM Software Services GmbH > Sommerfelder Straße 120 > 04316 Leipzig > > > EMail: mailto:[EMAIL PROTECTED] > > WWW : http://www.inter-forum.de > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email