19 package org.turro.forum;
21 import java.util.Date;
22 import org.turro.elephant.entities.db.Post;
23 import org.turro.elephant.entities.db.Topic;
24 import org.turro.forum.db.UniquePath;
25 import org.turro.jpa.Dao;
33 private final String entityPath;
34 private final String contactId;
35 private final Date dateCreation;
36 private final String body;
38 public CommentItEntry(String entityPath, String contactId, Date dateCreation, String body) {
39 this.entityPath = entityPath;
40 this.contactId = contactId;
41 this.dateCreation = dateCreation;
67 topic = dao.saveObject(topic);
78 post = dao.saveObject(post);
void setAuthorId(String authorId)
void setCreation(Date creation)
void setText(String text)
void setTopic(Topic topic)
void setCreation(Date creation)
void setText(String text)
void setEntityPath(String entityPath)
void setAuthorId(String authorId)
static void normalizeUniquePaths(Topic topic)