0
votes

In my application, we were creating an instance of the EntityManager with no properties, and then later setting properties using the setProperties method of the EntityManager. I ran into a problem however in that when you use setProperties and give it a service name, it doesn't set the dataServiceAdpterInstance property on the EntityManager, this causes all queries to fail.

1

1 Answers

0
votes

I was able to solve my problem by adding this.dataServiceAdapterInstance = a_config.getAdapterInstance("dataService"); from the EntityManager constructor into the setProperties method.