Added: 1 year ago
From: patrickwashingtondc
Views: 17,727
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (15)

Sign In or Sign Up now to post a comment!
  • Comment removed

  • Comment removed

  • 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

  • Comment removed

  • @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.

  • @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 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.

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