on 05-14-2008 8:44 AM
Hi,
trying to remove an entity as follows:
Query geMyEntity = entityManager.createNamedQuery("getMyEntityByReference");
getMyEntity.setParameter("reference", "...");
MyEntity me = (MyEntity) getMyEntity.getSingleResult();
entityManager.remove(me);
yields the following error:
Caused by: com.sap.sql.log.OpenSQLException: The SQL statement "DELETE FROM "SAPSP5DB"."MY_TABLE" WHERE "SAPSP5DB"."MY_TABLE"."ID" = ?" contains the syntax error[s]: - Open SQL syntax error: column names must not specify a schema name (delete "SAPSP5DB". before "MY_TABLE"."ID").
What am I missing? Thank you for your help in advance.
Cheers,
Felix
Edited by: Felix Geller on May 14, 2008 9:44 AM
Edited by: Felix Geller on May 14, 2008 10:31 AM
Hi Felix,
we'd have to look into this deeper to find out why this happens. I'd guess that your @Table annotation includes a "schema" element that might confuse here. If so, I suggest that you remove it. Its not needed when running on the system data source.
I hope this helps,
Adrian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.