Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82389

OQL query in java code

$
0
0

my applicaiton is existing code running on postgres. But now migrated to SQL server. There are database queries in  java actions using Core.retrieveOQLDataTable method.

But there were errors on executing these queries, i assumed that is because of change in database, so syntax will be changed. But even simplest query wont run. Below is example.

So if want to write OQL query in .java file using Core.retrieveOQLDataTable method, what will be the syntax? i keep getting parse errors in the code.

"select Alias.ColName as ColName
+ " FROM \"Module$EntityName\" as Alias where Alias.Colname= 'value'";

I have tried Module.EntityName a well.


Viewing all articles
Browse latest Browse all 82389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>