Wrox Programmer Forums
|
BOOK: Professional Java Development with the Spring Framework
This is the forum to discuss the Wrox book Professional Java Development with the Spring Framework by Rod Johnson, Juergen Hoeller, Alef Arendsen, Thomas Risberg, Colin Sampaleanu; ISBN: 9780764574832
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Java Development with the Spring Framework section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2006, 06:00 AM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Genre and Show objects association

Greetings,
Mapping file Genre.hbm.xml contains:
<set name="shows" lazy="false" inverse="true" order-by="name">
            <key column="Genre_id"/>
            <one-to-many class="org.springframework.prospring.ticket.domain .Show"/>
        </set>

Since inverse="true" is set up, I expect the bidirectional association from Show to Genre. IMO file Show.hbm.xml should contain something like
<many-to-one name="genre" class="org.springframework.prospring.ticket.domain .Genre"
             column="Genre_id"/>

But Show.hbm.xml has no such stanza.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Persisting Simple Association aadz5 Hibernate 1 August 13th, 2008 03:49 AM
Value objects rayback_2 BOOK: Beginning Cryptography with Java 1 May 13th, 2008 05:04 PM
File Association --> Running App ??? tot2ivn VS.NET 2002/2003 0 February 17th, 2005 08:13 AM
software engineers' association-making an internat amitkulk JSP Basics 0 October 6th, 2003 12:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.