protected WallEntry toUnwrappedModel(WallEntry wallEntry) {
if (wallEntry instanceof WallEntryImpl) {
return wallEntry;
}
WallEntryImpl wallEntryImpl = new WallEntryImpl();
wallEntryImpl.setNew(wallEntry.isNew());
wallEntryImpl.setPrimaryKey(wallEntry.getPrimaryKey());
wallEntryImpl.setWallEntryId(wallEntry.getWallEntryId());
wallEntryImpl.setGroupId(wallEntry.getGroupId());
wallEntryImpl.setCompanyId(wallEntry.getCompanyId());
wallEntryImpl.setUserId(wallEntry.getUserId());
wallEntryImpl.setUserName(wallEntry.getUserName());
wallEntryImpl.setCreateDate(wallEntry.getCreateDate());
wallEntryImpl.setModifiedDate(wallEntry.getModifiedDate());
wallEntryImpl.setComments(wallEntry.getComments());
wallEntryImpl.setPostFromIpAddress(wallEntry.getPostFromIpAddress());
return wallEntryImpl;
}