facebook

composite-id fields not accessible

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #281327 Reply

    kkaal
    Member

    Hi,

    I have a table which defines the primary key like this:

    
     <composite-id name="id" class="com.tl.database.CosiAccountsId">
                <key-property name="simid" type="java.lang.Long">
                    <column name="simid" />
                </key-property>
                <key-property name="accno" type="java.lang.String">
                    <column name="accno" length="9" />
                </key-property>
            </composite-id>
    

    The created POJO does not give access to these 2 fields. What am I doing wrong?

    Thanks for your help
    Klaus

    #281346 Reply

    kkaal
    Member

    Sorry, I found the solution and saw my mistake:

    There is the object (CosiAccountsId)id in the POJP which contains my variables.

    Problem solved.

    #281349 Reply

    Loyal Water
    Member

    Glad you figured out the solution.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: composite-id fields not accessible

You must be logged in to post in the forum log in