Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java Hibernate Tutorial Part 16 - One to One Bi-directional

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
17,639
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 7, 2010

Easy to follow step by step tutorial on Java Hibernate Framework using JPA annotations.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • First, thanks for your fantastic work. I was a error in a example OneToOne Bidirectional

    org.hibernate.AnnotationExcept­ion: Unknown mappedBy in:

  • I had the same error. The problem was I had imported org.hibernate.annotations.Casc­adeType instead of javax.persistence.CascadeType. Changing the imports solved my problem :)

  • Thank you very much for the tutorials. In this chapter, I am getting the following error on this line in the PersonDetail class.

    @OneToOne(mappedBy="pDetail",c­ascade=CascadeType.ALL,fetch=F­etchType.EAGER)

    Error is : Type Mismatch: cannot convert from CascadeType to CascadeType[]

  • I am getting the following error sir. Can you please let me know?

  • at com.hibernate.chapter6.TestOne­ToOnePerson.main(TestOneToOneP­erson.java:15)

    

  • One of the Highest in quality Hibernate Tutorial

  • your tutorial series is one of the best tutorial, i found on you tube.

    god bless you...thanks a lot

  • @DillonHaw send me an email with both class files and the test class. I will take a look. Also I assume the annotation is from javax and not from hibernate.

  • @patrickwashingtondc I did, but i still got the same error.

    i have : private Person person; @OneToOne (mappedBy="pDetail", cascade= CascadeType.ALL) public Person getPerson() { return person; }

    and also the setPerson method

  • @DillonHaw recheck your declaration of person in the PersonDetail class. make sure you have the getter and setter. Its at 1:10 time line in the video.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more