Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8577475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:10:06+00:00 2026-06-11T20:10:06+00:00

I am using list for one-to-many bi-directional mapping in hibernate.. following is my code

  • 0

I am using list for one-to-many bi-directional mapping in hibernate..

following is my code for list:

<list name="fEvents" table="FTP_SCAN_EVENTS" cascade="save-update" access="field">
  <key column="LOCATION_ID"  />
  <list-index column="idx" />
  <one-to-many class="FtpScanEvents" />
</list>

the column idx in the table is not generating..Do I have to have it as a property in my class? any suggestion on generating this Id…?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:10:07+00:00Added an answer on June 11, 2026 at 8:10 pm

    Try to chnage to index instead of list-index.
    You dont need property for the index.
    Hibernate calc it based on position in the list. You can also define base to start the position from another base than 0

    In addtional check this – Bidirectional list

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m using one-to-many mapping for List using join table. There are lot of
I can set up one-to-many mapping of List objects by using annotations, however using
I'm using this code: Dim cListItems As New System.Collections.Generic.List(Of Combobox_values) cListItems.Add(New Combobox_values(One, 1)) cListItems.Add(New
Hi I'm trying to map a one-many parent-child relationship in NHibernate using XML mapping.
I'm using FluentNHibernate to map a bi-directional one-to-many relationship where ordering is important, so
I am using EF to return a List of Processes, with one to many
my_list = ['one', 'two', 'three', 'four', 'five', 'six', 'seven'] Using python, I need list
I am using ASP.NET/C# .In one of my page I am showing list of
I am using List in C#. Code is as mentioned below: TestCase.cs public class
I am loading a list of many entities. These entities have a one-to-many association

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.