Package org.hibernate.ogm.options.spi

Examples of org.hibernate.ogm.options.spi.MappingOption


   *
   * @param annotation the annotation
   * @return a converter instance or {@code null} if the given annotation is no option annotation
   */
  private <A extends Annotation> AnnotationConverter<A> getConverter(Annotation annotation) {
    MappingOption mappingOption = annotation.annotationType().getAnnotation( MappingOption.class );

    // wrong type would be a programming error of the annotation developer
    @SuppressWarnings("unchecked")
    Class<? extends AnnotationConverter<A>> converterClass = (Class<? extends AnnotationConverter<A>>) ( mappingOption != null ? mappingOption.value()
        : null );

    try {
      return converterClass != null ? converterClass.newInstance() : null;
    }
View Full Code Here


   *
   * @param annotation the annotation
   * @return a converter instance or {@code null} if the given annotation is no option annotation
   */
  private <A extends Annotation> AnnotationConverter<A> getConverter(Annotation annotation) {
    MappingOption mappingOption = annotation.annotationType().getAnnotation( MappingOption.class );

    // wrong type would be a programming error of the annotation developer
    @SuppressWarnings("unchecked")
    Class<? extends AnnotationConverter<A>> converterClass = (Class<? extends AnnotationConverter<A>>) ( mappingOption != null ? mappingOption.value()
        : null );

    try {
      return converterClass != null ? converterClass.newInstance() : null;
    }
View Full Code Here

   *
   * @param annotation the annotation
   * @return a converter instance or {@code null} if the given annotation is no option annotation
   */
  private <A extends Annotation> AnnotationConverter<A> getConverter(Annotation annotation) {
    MappingOption mappingOption = annotation.annotationType().getAnnotation( MappingOption.class );

    // wrong type would be a programming error of the annotation developer
    @SuppressWarnings("unchecked")
    Class<? extends AnnotationConverter<A>> converterClass = (Class<? extends AnnotationConverter<A>>) ( mappingOption != null ? mappingOption.value()
        : null );

    try {
      return converterClass != null ? converterClass.newInstance() : null;
    }
View Full Code Here

   *
   * @param annotation the annotation
   * @return a converter instance or {@code null} if the given annotation is no option annotation
   */
  private static <A extends Annotation> AnnotationConverter<A> getConverter(Annotation annotation) {
    MappingOption mappingOption = annotation.annotationType().getAnnotation( MappingOption.class );

    // wrong type would be a programming error of the annotation developer
    @SuppressWarnings("unchecked")
    Class<? extends AnnotationConverter<A>> converterClass = (Class<? extends AnnotationConverter<A>>) ( mappingOption != null ? mappingOption.value()
        : null );

    try {
      return converterClass != null ? converterClass.newInstance() : null;
    }
View Full Code Here

    return options;
  }

  private static Class<? extends AnnotationConverter<?>> getConverterType(Annotation annotation) {
    MappingOption mappingOption = annotation.annotationType().getAnnotation( MappingOption.class );
    return mappingOption != null ? mappingOption.value() : null;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.options.spi.MappingOption

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.