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

Entity associations in OQL in Java code

$
0
0

Hello All,

I am trying to figure out how to mention entity association in an OQL query in java code.

How do i reach to the associated entity?

I tried

SELECT A1.attribute1 AS atr1

FROM module.entity1 as A1
WHERE
A1.attribute = 'string'

And A1/module.AssociationName= id of associated row in associated object

 

Its the last line of query that is giving error in OQL window in mendix modeler and in SQL server as well. (I have modified and put correct tables in both)


Viewing all articles
Browse latest Browse all 80876

Trending Articles



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