コード例 #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 setEmbeddableKeys() {
   selected
       .getEscCapUnsPK()
       .setTipoCap(selected.getEscNivelRemunerativoUns().getEscNivelRemunerativoUnsPK().getTipo());
 }