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

org.jinq.jpa.transform.MetamodelUtilAttribute Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package org.jinq.jpa.transform;

import javax.persistence.metamodel.Attribute;

/**
 * Holds information about JPA Criteria API Metamodel attribute. 
 * We don't need all the information from the metamodel, so it's 
 * easier to have a class holding only the fields we need.
 */
public class MetamodelUtilAttribute
{
   private String name;
   private boolean isAssociation;
   
   public MetamodelUtilAttribute(Attribute singularAttrib)
   {
      this(singularAttrib.getName(), singularAttrib.isAssociation());
   }
   
   public MetamodelUtilAttribute(String name, boolean isAssociation)
   {
      this.name = name;
      this.isAssociation = isAssociation;
   }

   public String getName()
   {
      return name;
   }
   
   public boolean isAssociation()
   {
      return isAssociation;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy