protected Entry toUnwrappedModel(Entry entry) {
if (entry instanceof EntryImpl) {
return entry;
}
EntryImpl entryImpl = new EntryImpl();
entryImpl.setNew(entry.isNew());
entryImpl.setPrimaryKey(entry.getPrimaryKey());
entryImpl.setUuid(entry.getUuid());
entryImpl.setEntryId(entry.getEntryId());
entryImpl.setGroupId(entry.getGroupId());
entryImpl.setCompanyId(entry.getCompanyId());
entryImpl.setUserId(entry.getUserId());
entryImpl.setUserName(entry.getUserName());
entryImpl.setCreateDate(entry.getCreateDate());
entryImpl.setModifiedDate(entry.getModifiedDate());
entryImpl.setName(entry.getName());
entryImpl.setEmail(entry.getEmail());
entryImpl.setMessage(entry.getMessage());
entryImpl.setGuestbookId(entry.getGuestbookId());
return entryImpl;
}