
com.vaadin.addon.jpacontainer.HierarchicalEntityContainer Maven / Gradle / Ivy
The newest version!
/*
JPAContainer
Copyright (C) 2009-2011 Oy Vaadin Ltd
This program is available under GNU Affero General Public License (version
3 or later at your option).
See the file licensing.txt distributed with this software for more
information about licensing.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
package com.vaadin.addon.jpacontainer;
import com.vaadin.data.Container;
/**
* This is a preliminary interface for adding hierarchical support to JPAContainer.
* It works if the entities can be nested by means of a parent property, e.g. like
* this:
*
*
* class MyNodeEntity {
* MyNodeEntity parent;
* ...
* }
*
*
*
* @author Petter Holmström (Vaadin Ltd)
* @since 1.0
*/
public interface HierarchicalEntityContainer extends EntityContainer, Container.Hierarchical {
/**
* Sets the persistent property (may be nested) that contains the reference
* to the parent entity. The parent entity is expected to be of the same
* type as the child entity.
*
* @param parentProperty the name of the parent property.
*/
public void setParentProperty(String parentProperty);
/**
* Gets the name of the persistent property that contains the reference
* to the parent entity.
*
* @return the name of the parent property, or null if not specified.
*/
public String getParentProperty();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy