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

org.apache.openejb.jee.jpa.Embeddable Maven / Gradle / Ivy

The newest version!
/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.openejb.jee.jpa;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;


/**
 * Defines the settings and mappings for embeddable objects. Is
 * allowed to be sparsely populated and used in conjunction with
 * the annotations. Alternatively, the metadata-complete attribute
 * can be used to indicate that no annotations are to be processed
 * in the class. If this is the case then the defaulting rules will
 * be recursively applied.
 *
 * @Target({TYPE}) @Retention(RUNTIME)
 * public @interface Embeddable {}
 * 

*

*

*

Java class for embeddable complex type. *

*

The following schema fragment specifies the expected content contained within this class. *

*

 * <complexType name="embeddable">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="attributes" type="{http://java.sun.com/xml/ns/persistence/orm}embeddable-attributes" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" />
 *       <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="metadata-complete" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "embeddable", propOrder = { "description", "attributes" }) public class Embeddable { protected String description; protected EmbeddableAttributes attributes; @XmlAttribute protected AccessType access; @XmlAttribute(name = "class", required = true) protected String clazz; @XmlAttribute(name = "metadata-complete") protected Boolean metadataComplete; /** * Gets the value of the description property. * * @return possible object is * {@link String } */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value allowed object is * {@link String } */ public void setDescription(final String value) { this.description = value; } /** * Gets the value of the attributes property. * * @return possible object is * {@link EmbeddableAttributes } */ public EmbeddableAttributes getAttributes() { return attributes; } /** * Sets the value of the attributes property. * * @param value allowed object is * {@link EmbeddableAttributes } */ public void setAttributes(final EmbeddableAttributes value) { this.attributes = value; } /** * Gets the value of the access property. * * @return possible object is * {@link AccessType } */ public AccessType getAccess() { return access; } /** * Sets the value of the access property. * * @param value allowed object is * {@link AccessType } */ public void setAccess(final AccessType value) { this.access = value; } /** * Gets the value of the clazz property. * * @return possible object is * {@link String } */ public String getClazz() { return clazz; } /** * Sets the value of the clazz property. * * @param value allowed object is * {@link String } */ public void setClazz(final String value) { this.clazz = value; } /** * Gets the value of the metadataComplete property. * * @return possible object is * {@link Boolean } */ public Boolean isMetadataComplete() { return metadataComplete; } /** * Sets the value of the metadataComplete property. * * @param value allowed object is * {@link Boolean } */ public void setMetadataComplete(final Boolean value) { this.metadataComplete = value; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy