I don’t know if I can get the exact point here, but in the YABE training blog this connection table is used and created automatically using the Play function:
http://www.playframework.org/documentation/1.2.4/guide6#tagging
" " ( "" "" ):
@ManyToMany(cascade=CascadeType.PERSIST)
public Set<Tag> tags;
public Post(User author, String title, String content) {
...
this.tags = new TreeSet<Tag>();
...
this.title = title;
this.content = content;
...
}
YAML :
Post(jeffPost):
title: The MVC application
postedAt: 2009-06-06
author: jeff
tags:
- play
- architecture
- mvc
, "post_tag" , (post_ids tags_ids ).
, :
"select distinct p from Post p join p.tags as t"
- ? Java JPA Play ^^
, , "".