List of usage examples for org.springframework.data.domain Persistable getId
@Nullable ID getId();
From source file:org.obiba.mica.file.FileUtils.java
public static String getEntityPath(Persistable persistable) { return String.format("/%s/%s", CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_HYPHEN, persistable.getClass().getSimpleName()), persistable.getId()); }
From source file:org.agatom.springatom.data.oid.creators.PersistableSOidCreator.java
@Override protected Object getTypeId(final Persistable<?> from) { return from.getId(); }
From source file:org.agatom.springatom.data.hades.model.notification.NNotification.java
public NNotification setTarget(final Persistable<Long> target) { this.target = (NNotificationTarget) new NNotificationTarget().setAssociateId(target.getId()) .setAssociateClass(ClassUtils.getUserClass(target)); return this; }
From source file:org.agatom.springatom.data.hades.model.notification.NNotification.java
public NNotification setSubject(final Persistable<Long> subject) { this.subject = (NNotificationSubject) new NNotificationSubject().setAssociateId(subject.getId()) .setAssociateClass(ClassUtils.getUserClass(subject)); return this; }