Package org.paquitosoft.lml.model.annotation

Examples of org.paquitosoft.lml.model.annotation.AssociationType


        try {
            for (Field f : cascadeAttributes) {
               
                f.setAccessible(true);
                Object fieldValue = f.get(entity);
                AssociationType at = ModelUtilities.getAssociationType(f, mode);
               
                if (f.getAnnotation(PersistentAttribute.class) != null){
                    try {
                        if (fieldValue == null && AssociationType.REQUIRED.equals(at)) {
                            throw new InternalErrorException("PersistAction::persistAssociatedAttributes -> You tried to persist a null value for " +
View Full Code Here


     * @param persistenceMode
     * @return association type (default AssociationType.NONE)
     */
    public static AssociationType getAssociationType(Field persistentField, byte persistenceMode) {
   
        AssociationType result = AssociationType.NONE;
       
        if (PERSIST_MODE_DELETE == persistenceMode) {
            PersistentAttribute att = persistentField.getAnnotation(PersistentAttribute.class);
            if (att != null) {
                result = att.removeAssociationType();
View Full Code Here

TOP

Related Classes of org.paquitosoft.lml.model.annotation.AssociationType

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.