This is the content of package-info.java
Code:
@org.hibernate.annotations.TypeDefs({
@org.hibernate.annotations.TypeDef(name = "SimNaoChar",
typeClass = visualcontrol.model.BooleanCharUserType.class,
parameters = {
@org.hibernate.annotations.Parameter(name = "stringNull", value = "N"),
@org.hibernate.annotations.Parameter(name = "stringTrue", value = "S"),
@org.hibernate.annotations.Parameter(name = "stringFalse", value = "N")
}),
@org.hibernate.annotations.TypeDef(name = "SimNaoChar_NullSim",
typeClass = visualcontrol.model.BooleanCharUserType.class,
parameters = {
@org.hibernate.annotations.Parameter(name = "stringNull", value = "S"),
@org.hibernate.annotations.Parameter(name = "stringTrue", value = "S"),
@org.hibernate.annotations.Parameter(name = "stringFalse", value = "N")
})
})
package visualcontrol.model.entity;
And the mapping class:
Code:
@Entity
@Table(name = "LOCALCOB")
public class LocalCobranca implements Serializable{
//(...)
@Column(name="MOSTRAR_SITE")
@Type(type="SimNaoChar")
private boolean mostrarSite;