on 10-02-2008 2:47 PM
Hello guys.
I am trying to write an EJB project with JPA facet. Database is postgres 8.2. SAP JPA implementatiom uses incorrect SQL syntax with that DB. Can I add some vendor-specific properties to my persistence.xml? Are there any other ways to solve that peoblem?
Thanks in advance.
Hi Andrey,
Postgres in not known to SAP JPA. In case of a unknown database vendor, SAP JPA generates generic ISO/IEC compliant SQL, which works in many cases but not always.
Moreover, an application cannot define a vendor-specific SQL dialect.
Which kind of issues are you facing? If only some JPQL queries are failing, you might have a chance to replace them with native queries. If the issues are more fundamental, it will be difficult, though.
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 |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.