julientarrago wrote:
julientarrago wrote:
julientarrago wrote:
pksiv wrote:
julientarrago wrote:
but Extern is my subclass I have mapped it in a hbm.xml file.
It is the same file. I don't understand what to do?
You should probably read more about joined subclasses. If it's the same class, you don't need to also map it as a <class>. A joined-subclass is a top-level mapping.
thanks I have just find this soluce thanks
And now How can I precise the sql-type for the property?
ok ok I find it
this is my java file of one subclass :
package fr.icdc.dei.fwk.sample.dto;
public class Externe extends Ressource implements java.io.Serializable {
// Fields
private java.lang.Integer Id;
private java.math.BigDecimal MontantFacturation;
// Constructors
/** default constructor */
public Externe() {
}
/** constructor with id */
public Externe(java.lang.Integer Id) {
this.Id = Id;
}
// Property accessors
/**
*/
public java.lang.Integer getId () {
return this.Id;
}
public void setId (java.lang.Integer Id) {
this.Id = Id;
}
/**
*/
public java.math.BigDecimal getMontantFacturation () {
return this.MontantFacturation;
}
public void setMontantFacturation (java.math.BigDecimal MontantFacturation) {
this.MontantFacturation = MontantFacturation;
}
}
is it correct?