forked from banq/jivejdon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed bug remove super class from domain model
- Loading branch information
Showing
3 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ | |
import com.jdon.jivejdon.domain.model.property.MessagePropertysVO; | ||
import com.jdon.jivejdon.domain.model.property.Property; | ||
import com.jdon.jivejdon.domain.model.reblog.ReBlogVO; | ||
import com.jdon.jivejdon.domain.model.util.ForumModel; | ||
import com.jdon.jivejdon.spi.pubsub.publish.MessageEventSourcingRole; | ||
import com.jdon.jivejdon.spi.pubsub.publish.ShortMPublisherRole; | ||
import com.jdon.jivejdon.spi.pubsub.reconstruction.LazyLoaderRole; | ||
|
@@ -58,7 +57,7 @@ | |
* @author <a href="mailto:[email protected]">banq</a> | ||
*/ | ||
@Model | ||
public class ForumMessage extends ForumModel implements Cloneable { | ||
public class ForumMessage implements Cloneable { | ||
private static final long serialVersionUID = 1L; | ||
@Inject | ||
public LazyLoaderRole lazyLoaderRole; | ||
|
@@ -81,6 +80,7 @@ public class ForumMessage extends ForumModel implements Cloneable { | |
private AttachmentsVO attachmentsVO; | ||
private MessagePropertysVO messagePropertysVO; | ||
private ReBlogVO reBlogVO; | ||
private volatile boolean solid; | ||
|
||
protected ForumMessage() { | ||
this.messageVO = this.messageVOBuilder().subject("").body("").build(); | ||
|
@@ -518,4 +518,12 @@ public void build(long messageId, MessageVO messageVO, Forum | |
} | ||
|
||
} | ||
|
||
public boolean isSolid() { | ||
return solid; | ||
} | ||
|
||
private void setSolid(boolean solid) { | ||
this.solid = solid; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,6 @@ | |
import com.jdon.jivejdon.domain.model.subscription.event.ThreadSubscribedNotifyEvent; | ||
import com.jdon.jivejdon.domain.model.thread.ThreadTagsVO; | ||
import com.jdon.jivejdon.domain.model.thread.ViewCounter; | ||
import com.jdon.jivejdon.domain.model.util.ForumModel; | ||
import com.jdon.jivejdon.domain.model.util.OneOneDTO; | ||
import com.jdon.jivejdon.spi.pubsub.reconstruction.LazyLoaderRole; | ||
import com.jdon.jivejdon.spi.pubsub.publish.MessageEventSourcingRole; | ||
|
@@ -53,7 +52,7 @@ | |
* @author <a href="mailto:[email protected]">banq</a> | ||
*/ | ||
@Model | ||
public class ForumThread extends ForumModel { | ||
public class ForumThread { | ||
private static final long serialVersionUID = 1L; | ||
@Inject | ||
public LazyLoaderRole lazyLoaderRole; | ||
|
@@ -87,6 +86,8 @@ public class ForumThread extends ForumModel { | |
|
||
private long creationDate2; | ||
|
||
private boolean solid; | ||
|
||
|
||
/** | ||
* normal can be cached reused | ||
|
@@ -403,4 +404,11 @@ public synchronized void build(Forum forum, ForumMessage rootMessage, ThreadTags | |
this.setSolid(true); | ||
} | ||
|
||
public boolean isSolid() { | ||
return solid; | ||
} | ||
|
||
private void setSolid(boolean solid) { | ||
this.solid = solid; | ||
} | ||
} |