Para poner la fecha de hoy como valor por defecto en una entidad de Oracle ADF hay que sobreescribir el método create de la implementación de la entidad.
public class HorariosGeneralesImpl extends EntityImpl {
.
.
.
/**
*Add attribute defaulting logic in this method.
*/
protected void create(AttributeList attributeList) {
super.create(attributeList);
/* Inicializamos el campo ValidezDesde con la fecha de hoy. */
setAttributeInternal(VALIDEZDESDE,
Utilidades.convertirTiposDeFechas(newjava.util.Date()));
}
.
.
.
}

0 Comments:
Publicar un comentario
<< Home