Examples of JpaProviderException


Examples of org.apache.cayenne.jpa.JpaProviderException

                else {
                    return new PropertyDescriptor(name, objectClass).getPropertyType();
                }
            }
            catch (Exception e) {
                throw new JpaProviderException("Error resolving attribute '"
                        + name
                        + "', access type:"
                        + access
                        + ", class: "
                        + objectClass.getName(), e);
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

                else {
                    return new PropertyDescriptor(name, objectClass).getPropertyType();
                }
            }
            catch (Exception e) {
                throw new JpaProviderException("Error resolving attribute '"
                        + name
                        + "', access type:"
                        + access
                        + ", class: "
                        + objectClass.getName(), e);
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

        @Override
        public boolean onStartNode(ProjectPath path) {
            JpaColumn jpaColumn = (JpaColumn) path.getObject();

            if (jpaColumn.getTable() == null) {
                throw new JpaProviderException("No default table defined for JpaColumn "
                        + jpaColumn.getName());
            }

            JpaAttribute attribute = (JpaAttribute) path.getObjectParent();
            createDbAttribute(jpaColumn.getTable(), jpaColumn, attribute);
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

                else {
                    return new PropertyDescriptor(name, objectClass).getPropertyType();
                }
            }
            catch (Exception e) {
                throw new JpaProviderException("Error resolving attribute '"
                        + name
                        + "', access type:"
                        + access
                        + ", class: "
                        + objectClass.getName(), e);
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

                else {
                    return new PropertyDescriptor(name, objectClass).getPropertyType();
                }
            }
            catch (Exception e) {
                throw new JpaProviderException("Error resolving attribute '"
                        + name
                        + "', access type:"
                        + access
                        + ", class: "
                        + objectClass.getName(), e);
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

        @Override
        public boolean onStartNode(ProjectPath path) {
            JpaColumn jpaColumn = (JpaColumn) path.getObject();

            if (jpaColumn.getTable() == null) {
                throw new JpaProviderException("No default table defined for JpaColumn "
                        + jpaColumn.getName());
            }

            JpaAttribute attribute = (JpaAttribute) path.getObjectParent();
            createDbAttribute(jpaColumn.getTable(), jpaColumn, attribute);
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

    }

    public JpaPropertyDescriptor(Method getter, String name) {

        if (JpaClassDescriptor.propertyNameForGetter(getter.getName()) == null) {
            throw new JpaProviderException("Invalid property getter name: "
                    + getter.getName());
        }

        this.member = getter;
        this.name = name;
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

        }
        catch (JpaProviderException e) {
            throw e;
        }
        catch (Exception e) {
            throw new JpaProviderException("Error loading ORM descriptors", e);
        }
    }
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

                Class<?> managedClass;
                try {
                    managedClass = Class.forName(className, true, loader);
                }
                catch (ClassNotFoundException e) {
                    throw new JpaProviderException("Class not found: " + className, e);
                }

                managedClassMap.put(className, managedClass);
            }
        }

        // now detect potential managed classes from PU root and extra jars
        if (!persistenceUnit.excludeUnlistedClasses()) {
            Collection<String> implicitClasses = listImplicitClasses(persistenceUnit);
            for (String className : implicitClasses) {

                if (managedClassMap.containsKey(className)) {
                    continue;
                }

                Class<?> managedClass;
                try {
                    managedClass = Class.forName(className, true, loader);
                }
                catch (ClassNotFoundException e) {
                    throw new JpaProviderException("Class not found: " + className, e);
                }

                if (managedClass.getAnnotation(Entity.class) != null
                        || managedClass.getAnnotation(MappedSuperclass.class) != null
                        || managedClass.getAnnotation(Embeddable.class) != null) {
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

        File root;
        try {
            root = new File(dirURL.toURI());
        }
        catch (URISyntaxException e) {
            throw new JpaProviderException("Error converting url to file: " + dirURL, e);
        }

        locateClassesInFolder(root, root.getAbsolutePath().length() + 1, classes);
    }
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.