Package org.freezedry.persistence.annotations

Examples of org.freezedry.persistence.annotations.PersistCollection


        // grab the persistence name from any annotations to the field
        final Field field = ReflectionUtils.getDeclaredField( containingClass, fieldName );
        persistName = ReflectionUtils.getPersistenceName( field );

        // check the annotations to see of the collection elements have been given a name
        final PersistCollection collectionAnnotation = field.getAnnotation( PersistCollection.class );
        if( collectionAnnotation != null && !collectionAnnotation.elementPersistName().isEmpty() )
        {
          elementPersistName = collectionAnnotation.elementPersistName();
        }
      }
      catch( ReflectiveOperationException e )
      {
        final StringBuffer message = new StringBuffer();
View Full Code Here


        // grab the persistence name from any annotations to the field
        final Field field = ReflectionUtils.getDeclaredField( containingClass, fieldName );
        persistName = ReflectionUtils.getPersistenceName( field );

        // check the annotations to see of the collection elements have been given a name
        final PersistCollection collectionAnnotation = field.getAnnotation( PersistCollection.class );
        if( collectionAnnotation != null && !collectionAnnotation.elementPersistName().isEmpty() )
        {
          elementPersistName = collectionAnnotation.elementPersistName();
        }
      }
      catch( ReflectiveOperationException e )
      {
        final StringBuffer message = new StringBuffer();
View Full Code Here

TOP

Related Classes of org.freezedry.persistence.annotations.PersistCollection

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.