![JAR search and dependency download from the Maven repository](/logo.png)
net.savantly.sprout.module.content.model.webPageContent.WebPageContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sprout-modules-content Show documentation
Show all versions of sprout-modules-content Show documentation
Provides dynamic content management for the Sprout Platform
The newest version!
package net.savantly.sprout.module.content.model.webPageContent;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import net.savantly.sprout.core.domain.PersistedDomainObject;
import net.savantly.sprout.module.content.model.contentItem.ContentItemImpl;
import net.savantly.sprout.module.content.model.webPage.WebPage;
@Entity
@Table(uniqueConstraints={
@UniqueConstraint(columnNames = {WebPageContent.WEBPAGE_ID, WebPageContent.PLACEHOLDER_ID})
},
name="WEB_PAGE_CONTENT")
public class WebPageContent extends PersistedDomainObject {
static final String WEBPAGE_ID = "webPageId";
static final String PLACEHOLDER_ID = "placeHolderId";
@ManyToOne
@JoinColumn(name=WEBPAGE_ID, nullable=false)
private WebPage webPage;
@Column(name=PLACEHOLDER_ID)
private String placeHolderId;
@ManyToMany(fetch=FetchType.EAGER)
private List contentItems = new ArrayList<>();
public WebPage getWebPage() {
return webPage;
}
public void setWebPage(WebPage webPage) {
this.webPage = webPage;
}
public String getPlaceHolderId() {
return placeHolderId;
}
public void setPlaceHolderId(String placeHolderId) {
this.placeHolderId = placeHolderId;
}
public List getContentItems() {
return contentItems;
}
public void setContentItems(List contentItems) {
this.contentItems = contentItems;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy