return JpaActivityStreamsEntry.class;
}
@Transactional
public ActivityStreamsEntry save(ActivityStreamsEntry e) {
JpaActivityStreamsEntry entry = converter.convert(e);
if(entry.getUserId() == null && entry.getActor() != null) {
entry.setUserId(entry.getActor().getId());
}
if(entry.getId() == null) {
entry.setId(UUID.randomUUID().toString());
}
return JpaUtil.saveOrUpdate(entry.getId(), manager, entry);
}