Hi friends, I have a problem. I using hibernateSynchronizer3
for my generate my hbm
but a have a problem. A error
Initial SessionFactory creation failed.org.hibernate.PropertyNotFoundException: Could not find a getter for
for every fields who begin with l lower case. Bizarre bizarre
my hbm
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping package="pojo">
<class
name="PpoAtraiterPojo"
table="PPO_ATRAITER"
>
<id
name="idPpoNtraite"
column="ID_PPO_NTRAITE"
type="integer"
length="6"
>
<generator class="assigned"/>
</id>
<property
name="ligneQualifier"
column="LGN_QUALIFIER"
type="string"
not-null="false"
length="2"
/>
<property
name="cntl"
column="CLM_CNTL"
type="string"
not-null="false"
length="17"
/>
<property
name="ligneProvider"
column="LGN_PROVIDER"
type="string"
not-null="false"
length="6"
/>
<property
name="disp"
column="CLM_DISP"
type="string"
not-null="false"
length="2"
/>
<property
[b]name="lAllowable"[/b]
column="LGN_ALLOWABLE"
type="big_decimal"
not-null="false"
length="9"
/>
</class>
</hibernate-mapping>
pojo
Code:
package pojo;
import java.io.Serializable;
import java.math.BigDecimal;
public class PpoAtraiterPojo implements Serializable, InterfacePojo {
private static final long serialVersionUID = 7127703723951922317L;
// primary key
private Integer idPpoNtraite;
// fields
private String ligneQualifier;
private String cntl;
private String ligneProvider;
private String disp;
private BigDecimal lAllowable;
/* [CONSTRUCTOR MARKER BEGIN] */
public PpoAtraiterPojo() {
super();
}
/**
* Constructor for primary key
*/
public PpoAtraiterPojo(Integer idPpoNtraite) {
this.idPpoNtraite = idPpoNtraite;
}
public String getCntl() {
return cntl;
}
public void setCntl(String cntl) {
this.cntl = cntl;
}
public String getDisp() {
return disp;
}
public void setDisp(String disp) {
this.disp = disp;
}
public Integer getIdPpoNtraite() {
return idPpoNtraite;
}
public void setIdPpoNtraite(Integer idPpoNtraite) {
this.idPpoNtraite = idPpoNtraite;
}
public BigDecimal getLAllowable() {
return lAllowable;
}
public void setLAllowable(BigDecimal allowable) {
lAllowable = allowable;
}
public String getLProvider() {
return lProvider;
}
public void setLigneProvider(String lProvider) {
this.lProvider = ligneProvider;
}
public String getLQualifier() {
return ligneQualifier;
}
public void setLQualifier(String ligneQualifier) {
this.lQualifier = ligneQualifier;
}
Quote:
Initial SessionFactory creation failed.org.hibernate.PropertyNotFoundException: Could not find a getter for lAllowable in class pojo.PpoAtraiterPojo
and if I change
et quand je change
ex lAllowable by ligneAllowable evething is good
very bizarre