Package org.hibernate.examples.mapping.associations.onetoone.unidirectionalManyToOne

Examples of org.hibernate.examples.mapping.associations.onetoone.unidirectionalManyToOne.Horse


    }

    @Test
    public void unidirectionalManyToOne() throws Exception {

        Horse horse = new Horse();
        horse.setName("Palefrenier");
        em.persist(horse);

        Cavalier cavalier = new Cavalier();
        cavalier.setName("Caroline");
        cavalier.setHorse(horse);
View Full Code Here

TOP

Related Classes of org.hibernate.examples.mapping.associations.onetoone.unidirectionalManyToOne.Horse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.