Skip to content

Commit

Permalink
fixed bug remove super class from domain model
Browse files Browse the repository at this point in the history
  • Loading branch information
banq committed Nov 1, 2019
1 parent 7745c3a commit ce094f2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/jdon/jivejdon/domain/model/Forum.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.jdon.jivejdon.domain.model.property.HotKeys;
import com.jdon.jivejdon.domain.model.subscription.SubPublisherRoleIF;
import com.jdon.jivejdon.domain.model.subscription.event.ForumSubscribedNotifyEvent;
import com.jdon.jivejdon.domain.model.util.ForumModel;
import com.jdon.jivejdon.spi.pubsub.publish.ThreadEventSourcingRole;
import com.jdon.jivejdon.spi.pubsub.reconstruction.LazyLoaderRole;
import com.jdon.jivejdon.util.Constants;
Expand All @@ -42,7 +41,7 @@
*/
@Searchable
@Model
public class Forum extends ForumModel {
public class Forum {

/**
*
Expand Down
12 changes: 10 additions & 2 deletions src/main/java/com/jdon/jivejdon/domain/model/ForumMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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();
Expand Down Expand Up @@ -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;
}
}
12 changes: 10 additions & 2 deletions src/main/java/com/jdon/jivejdon/domain/model/ForumThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -87,6 +86,8 @@ public class ForumThread extends ForumModel {

private long creationDate2;

private boolean solid;


/**
* normal can be cached reused
Expand Down Expand Up @@ -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;
}
}

0 comments on commit ce094f2

Please sign in to comment.