I am getting frustrated in my attempt to use default names since I don't know
what they are and cannot find a reference. Table and column names were changed
from underscores to camel-case so no problem there: what you see is what you
get. My relations, however, are another story.
What is the default join column from a book to its category? I think it's
CATEGORY_ID. Where can I see in black-and-white (or suitable color:) what the
default naming rules are? Since I have control of the schema I want to leverage
defaults as much as is practical.
|
| class Category
| {
| ...
| @Id @GeneratedValue(strategy = GenerationType.AUTO) public long
getId()...
|
| @OneToMany(mappedBy = "category") public List<Books> getBooks()...
| ...
| }
|
| class Book
| {
| ...
| @Id @GeneratedValue(strategy = GenerationType.AUTO) public long
getId()...
|
| @ManyToOne public Category getCategory()...
| ...
| }
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931979#3931979
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931979
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user