Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete query failed #218

Open
menesty opened this issue Dec 24, 2013 · 0 comments
Open

Delete query failed #218

menesty opened this issue Dec 24, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@menesty
Copy link

menesty commented Dec 24, 2013

Version 2.0.1.2
InvoicePdf currentInvoicePdf
Query query = getEm().createQuery("delete from " + entityClass.getName() + " entity where entity.invoicePdf=?1");
query.setParameter(1, currentInvoicePdf);
query.executeUpdate();

java.sql.SQLException: Column "E0_P.INVOICEPDF_ID" not found; SQL statement:
DELETE FROM InvoiceItem
WHERE (((E0_P.invoicePdf_id = ?))) [42122-174] Query: DELETE FROM InvoiceItem
WHERE (((E0_P.invoicePdf_id = ?))) Parameters: [34]
at org.batoo.jpa.jdbc.dbutils.QueryRunner.convertSqlException(QueryRunner.java:163)
at org.batoo.jpa.jdbc.dbutils.QueryRunner.update(QueryRunner.java:408)
at org.batoo.jpa.jdbc.dbutils.QueryRunner.update(QueryRunner.java:448)
at org.batoo.jpa.core.impl.criteria.QueryImpl.executeUpdate(QueryImpl.java:420)

@asimarslan asimarslan self-assigned this Oct 26, 2014
@asimarslan asimarslan added this to the 2.0.1.3 milestone Oct 26, 2014
@asimarslan asimarslan added the bug label Oct 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants