Results 1 to 3 of 3
  1. #1
    jmohandos304 is offline Senior Member
    Join Date
    Apr 2014
    Posts
    122
    Rep Power
    0

    Default mappedBy and joinColumn

    Hi,

    I am looking at Hibernate annotation tutorial for the different mappings like 1-1, 1-Many and so on. I see some of the tutorials focus on explaining the terms and go on explaining about inversejoincolumns and so on. Some tutorials concentrate on the example they are explaining and don't use the terms mappedby and joincolumn. This is not helping. I first want to understand the terms mappedby and joincolumn using a basic example. I will learn the more advanced terms like inversejoincolumn later once I start using hibernate. But for now I want a basic example with the explanation of the terms mappedby and joincolumn and how they are used in a mapping such as 1-1. If you post a good example with the usage of the terms I mentioned or point to a good tutorial I would be grateful to you.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: mappedBy and joinColumn

    Do you know SQL and database stuff in general?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: mappedBy and joinColumn

    Its a bit of a weird progression. From asking about basic programming concepts:

    - http://www.java-forums.org/new-java/...nderstand.html
    - http://www.java-forums.org/new-java/93444-casting.html
    - http://www.java-forums.org/new-java/...s-objects.html

    To asking about something as advanced as Hibernate / ORM packages.

    Hibernate has very rich documentation:

    Hibernate ORM documentation - Hibernate ORM

    If you don't understand it then it is not the problem that this documentation is faulty, its because you are not nearly experienced enough to be able to grasp it.
    Last edited by gimbal2; 11-06-2014 at 01:40 PM. Reason: Engrish
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •