Zafar ali
Zafar ali

Reputation: 77

JPA Relation or Secondary Table

I am reengineering one of my project with JPA which was initially on iBatis.

public class Entity{
    //ids and other stuff
    String locale;
    String text;
}

I was storing locale and text into separate table, which can be achieved via secondary table in JPA.

Upvotes: 0

Views: 8716

Answers (1)

James
James

Reputation: 18379

See,

http://en.wikibooks.org/wiki/Java_Persistence/Tables#Multiple_tables

Otherwise include your exact schema and model and issue.

Upvotes: 1

Related Questions