I'm attempting to retrieve data via my Entity Manager
in my Order Facade stateless session bean (Using JPA).
However, I seem to have made an error in calling my table ORDER
as it is a reserved keyword.
My attempts at escaping this have not been successful, I've tried backticks, square brackets, prefixing with the schema (APP.ORDER
). Documentation of this seems to be lacking.
Query query = em.createQuery("SELECT o FROM Order o", Order.class);
Anyone able to tell me how I can get around this in JPA? Or should I just go and name my table something else?