Package com.sun.javadoc

Examples of com.sun.javadoc.AnnotationDesc$ElementValuePair


    if (!members.containsKey(name))
      addElement(property, name, columnAnnotation);
  }

  private void addElement(ProgramElementDoc property, String name, AnnotationDesc columnAnnotation) {
    AnnotationDesc relation = Utils.findAnnotation(property, OneToMany.class, ManyToOne.class, OneToOne.class, ManyToMany.class);
    if (relation == null)
      addColumn(property, name, columnAnnotation);
    else {
      addRelation(property, name, columnAnnotation, relation);
    }
View Full Code Here


    if (JPADoclet.isHibernatePresent)
      lookupSequence();
  }

  private void lookupSequence() {
    AnnotationDesc generatedValue = Utils.findAnnotation(property, GeneratedValue.class);
    if (generatedValue == null)
      return;
    String generator = (String) Utils.getAnnotationValue(generatedValue, "generator");
    if (generator == null)
      return;
    Class<?> genericGeneratorClass;
    try {
      genericGeneratorClass = Class.forName("org.hibernate.annotations.GenericGenerator");
    } catch (ClassNotFoundException e) {
      return;
    }
    List<AnnotationDesc> genericGenerators = Utils.findAnnotations(property.containingClass(), genericGeneratorClass);
    AnnotationDesc genericGenerator = null;
    for (AnnotationDesc gen : genericGenerators) {
      String name = (String) Utils.getAnnotationValue(gen, "name");
      if (name != null && name.equals(generator)) {
        genericGenerator = gen;
      }
View Full Code Here

TOP

Related Classes of com.sun.javadoc.AnnotationDesc$ElementValuePair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.