Examples of JpaProviderException


Examples of org.apache.cayenne.jpa.JpaProviderException

                            '.'));
                }
            }
        }
        catch (Exception e) {
            throw new JpaProviderException("Error reading jar contents: " + jarURL, e);
        }
    }
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

        if (stack.peek() instanceof JpaManagedClass) {
            JpaManagedClass entity = (JpaManagedClass) stack.peek();
            // sanity check
            if (fieldAccess && propertyAccess) {
                throw new JpaProviderException("Entity '"
                        + entity.getClassName()
                        + "' has both property and field annotations.");
            }

            // TODO: andrus - 11/29/2006 - clean this redundancy - access field should be
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

                    properties.getProperty(Provider.DATA_SOURCE_PASSWORD_PROPERTY),
                    new ConnectionLogger());
        }
        catch (SQLException e) {
            QueryLogger.logConnectFailure(e);
            throw new JpaProviderException("Error creating connection pool", e);
        }
    }
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

                logger.warn("Error transforming class " + className, e);
                throw e;
            }
            catch (Throwable th) {
                logger.warn("Error transforming class " + className, th);
                throw new JpaProviderException("Error transforming class " + className, th);
            }
        }
        else {
            return null;
        }
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

        JpaIndirectQuery clone;
        try {
            clone = (JpaIndirectQuery) getClass().newInstance();
        }
        catch (Exception e) {
            throw new JpaProviderException("Error cloning a query", e);
        }

        clone.setJpaQuery(jpaQuery);
        clone.setParentEntity(parentEntity);
        clone.setParentMap(parentMap);
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

                            .type();

                    // TODO: andrus, 4/27/2006 - determine type from collection generics
                    // metadata.
                    if (void.class.equals(type)) {
                        throw new JpaProviderException("No type for collection defined: "
                                + traversableChildGetters[i].getName());
                    }
                }

                traversableChildTypes[i] = type;
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

            try {
                return traversableGetters[childIndex].invoke(object, (Object[]) null);
            }
            catch (Exception e) {
                throw new JpaProviderException("Error reading traversible property", e);
            }
        }
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

                            .type();

                    // TODO: andrus, 4/27/2006 - determine type from collection generics
                    // metadata.
                    if (void.class.equals(type)) {
                        throw new JpaProviderException("No type for collection defined: "
                                + traversableChildGetters[i].getName());
                    }
                }

                traversableChildTypes[i] = type;
View Full Code Here

Examples of org.apache.cayenne.jpa.JpaProviderException

            try {
                return traversableGetters[childIndex].invoke(object, (Object[]) null);
            }
            catch (Exception e) {
                throw new JpaProviderException("Error reading traversible property", e);
            }
        }
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
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.