log4j say
while set field: [try to set 'object value' in 'target object' target
obj class: serco.dao.personas.PersonasFisicas target field name:
fechanacimiento target field type: class java.sql.Date object value
class: java.util.Date object value: Sat Apr 23 00:00:00 CEST 2005 ]
On Apr 12, 2005 5:56 PM, Raul Giucich <[EMAIL PROTECTED]> wrote:
> OJB 1.1
> MYSQL 4.0.23
> TOMCAT 5.0.28
>
> when i'm try to execute
>
> perfisdao.findByPK("1","1","32","33") i have got an
>
> Exception in thread "main"
> org.apache.ojb.broker.metadata.MetadataException: IllegalAccess error
> setting field:fechanacimiento in
> object:serco.dao.personas.PersonasFisicas
>
> the portion of this value object is
>
> public class PersonasFisicas extends ValueObject implements Serializable{
> private java.sql.Date fechanacimiento;
> ...
> private Personas personas;
> ...
> private GrupoEtnico grupoEtnico;
> private Vector curriculumList = new Vector();
> private Vector personasFisicashasIdiomasList = new Vector();
>
> public PersonasFisicas(
> ...
> java.sql.Date fechanacimiento,
> ...
> ) {
> ...
> this.fechanacimiento = fechanacimiento;
> ...
> }
> /**
> * Getter for property fechanacimiento.
> * @return Value of property fechanacimiento.
> */
> public java.sql.Date getFechanacimiento() {
> return fechanacimiento;
> }
>
> /**
> * Setter for property fechanacimiento.
> * @param fechanacimiento New value of property fechanacimiento.
> */
> public void setFechanacimiento(java.sql.Date fechanacimiento) {
> this.fechanacimiento = fechanacimiento;
> }
>
> the portion of repository.xml is
>
> <class-descriptor class="serco.dao.personas.PersonasFisicas"
> table="PersonasFisicas">
> <field-descriptor name="fechanacimiento" default-fetch="true"
> column="FECHA_NACIMIENTO" jdbc-type="DATE"
> conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"/>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]