Hi Raul,
Raul Giucich wrote:
OJB 1.1
really? You are using the 1.x CVS trunk? Or do you mean 1.0.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
hmm, I think that you don't need the field-conversion. In PersonasFisicas the field type is java.sql.Date, with the field conversion it will be converted to java.util.Date.
So changing the field type or removing of the conversion may help.
If not, please post the whole stack trace, as far as I known is the error message normally more detailed.
regards, Armin
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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
