This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPQL script query

 
Winifred Leung
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm new to JPQL, there is a select statement on 2 Objects.
TN object will refer to TNChar object, there relationship is 1 TN to multiple TNChars; in TN object, there is a primary key 'entityId' refer to a foreign key 'charowner' in TNChar.
If I want to search basing on the multiple TNChars to get the TN object, how I can write the JPQL.

Here is some detail about
TN.entityid = 1000 ~ TNChar.name='PREFIX' &TNChar.value='123'
~ TNChar.name='Region' &TNChar.value='Cen1'
refer to the sample, i want to base on the 2 TNChar records to get the TN.

Thanks!
Winifred

 
Winifred Leung
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone help? i have been stuck there for few days.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic