Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Wrong One-To-Many Mapping

an example:

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinTable(name = "lkp_books_chapters", joinColumns = {@JoinColumn(name =
"_book_id", updatable = false)}, inverseJoinColumns = {@JoinColumn(name =
"_chapter_id", updatable = false)})
private List<Chapter> chapters;

you should buy a book about EJB (JPA).



PLC_David wrote:
> 
> @OneToMany
> @JoinTable(name="CHAPTERS",
> joinColumns=@JoinColumn(name="BOOK_ID",referencedColumnName="BOOK_ID"))
> 
> 
> JPA doesn't generate the right select. Which properties are missing ?
> 
> David
> 

-- 
View this message in context: http://www.nabble.com/Wrong-One-To-Many-Mapping-tp19527921p19571026.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top