Package org.paquitosoft.lml.model.annotation

Examples of org.paquitosoft.lml.model.annotation.PersistentEntity.generateKey()


     * @return <b>true</b> when entity's primary key is generated by the database
     */
    public static boolean isEntityPKGeneratedByDatabase(Class entityClass) {
        boolean result = true;
        PersistentEntity pr = (PersistentEntity) entityClass.getAnnotation(PersistentEntity.class);
        if (pr != null && pr.generateKey()) {
            result = false;
        }
        return result;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.