예제 #1
0
 @Override
 public String getAsString(FacesContext facesContext, UIComponent component, Object object) {
   if (object == null) {
     return null;
   }
   if (object instanceof EscCapUns) {
     EscCapUns o = (EscCapUns) object;
     return getStringKey(o.getEscCapUnsPK());
   } else {
     Logger.getLogger(this.getClass().getName())
         .log(
             Level.SEVERE,
             "object {0} is of type {1}; expected type: {2}",
             new Object[] {object, object.getClass().getName(), EscCapUns.class.getName()});
     return null;
   }
 }
예제 #2
0
 protected void initializeEmbeddableKey() {
   selected.setEscCapUnsPK(new edu.uns.escalafon.jpa.EscCapUnsPK());
 }
예제 #3
0
 protected void setEmbeddableKeys() {
   selected
       .getEscCapUnsPK()
       .setTipoCap(selected.getEscNivelRemunerativoUns().getEscNivelRemunerativoUnsPK().getTipo());
 }