• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA many to one/one to many query

 
Martin Sp
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys ,I would like to create JPA query based on this tables



I also have a "tempaltecat" table that holds foreign keys for category and template table.I`d like to create query that finds all templates in template table based on category and vice versa.

Here is my table mapping



Thanks in advance
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...,I would like to create JPA query based on this tables ...

What have you tried and what problems you have?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic