All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alogient.cameleon.sdk.content.dao.model.Part Maven / Gradle / Ivy

package com.alogient.cameleon.sdk.content.dao.model;

import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Set;

/**
 * FIXME Add a correct description of this entity
 * 
 * @author alord
 */
@Entity
@Table(name = "Part")
public class Part implements Serializable {
    /**
     * Serial version unique identifier
     */
    private static final long serialVersionUID = -7630015191243274560L;

    /**
     * This entity's primary key
     */
    private Integer partId;

    /**
     * The human readable name of this part
     */
    private String partName;

    /**
     * The template this part is a part of.
     */
    private Template template;

    /**
     * The data type of this part
     */
    private DataType datatype;

    /**
     * The ordering of this part
     */
    private Integer partOrder;

    /**
     * Is this part mutlticulture
     * 
     * FIXME Detail what this means a bit
     */
    private Boolean isMulticulture;

    /**
     * Is this part required
     */
    private Boolean isRequired;

    /**
     * FIXME What is this used for
     */
    private String minValue;

    /**
     * FIXME What is this used for
     */
    private String maxValue;

    /**
     * The minimum length of this part if it represents a string
     */
    private Integer minLength;

    /**
     * The maximum length of this part if it represents a string
     */
    private Integer maxLength;

    /**
     * FIXME What is this used for
     */
    private String customValidator;

    /**
     * FIXME What is this used for
     */
    private Integer thumbnailWidth;

    /**
     * FIXME What is this used for
     */
    private Integer thumbnailHeight;

    /**
     * FIXME What is this used for
     */
    private Integer presentationWidth;

    /**
     * FIXME What is this used for
     */
    private Integer presentationHeight;

    /**
     * The elements using this part
     */
    private Set elements;
    
    /**
     * The options associated with this element (if any)
     */
    private Set




© 2015 - 2025 Weber Informatics LLC | Privacy Policy