Package org.jboss.seam.solder.properties.query

Examples of org.jboss.seam.solder.properties.query.AnnotatedPropertyCriteria


   }  
  
   protected void configureIdentityId() throws IdentityException
   {
      List<Property<Object>> props = PropertyQueries.createQuery(identityClass)
         .addCriteria(new AnnotatedPropertyCriteria(Id.class))
         .getResultList();
     
      if (props.size() == 1)
      {
         modelProperties.put(PROPERTY_IDENTITY_ID, props.get(0));
View Full Code Here


        return entityClass.isAnnotationPresent(Entity.class);
    }
   
    private static Property<Serializable> primaryKey(Class<?> entityClass) {
        PropertyQuery<Serializable> query = PropertyQueries.<Serializable>createQuery(entityClass)
                                                           .addCriteria(new AnnotatedPropertyCriteria(Id.class));
        return query.getFirstResult();
    }
View Full Code Here

    boolean isEntity(Class<?> entity) {
        return entity.isAnnotationPresent(Entity.class);
    }

    boolean hasPrimaryKey(Class<?> entity) {
        final AnnotatedPropertyCriteria hasId = new AnnotatedPropertyCriteria(Id.class);
        PropertyQuery<Serializable> query = PropertyQueries.<Serializable> createQuery(entity).addCriteria(hasId);
        return query.getFirstResult() != null;
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.solder.properties.query.AnnotatedPropertyCriteria

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.