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 8069409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:00:36+00:00 2026-06-05T13:00:36+00:00

Does JPA ( Eclipselink in this case) always return IndirectList where Entity have a

  • 0

Does JPA ( Eclipselink in this case) always return IndirectList where Entity have a List?
Is ok that list or It should be converted to another list( maybe linkedlist)?

  • 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-05T13:00:38+00:00Added an answer on June 5, 2026 at 1:00 pm

    Analysis

    If we look at EclipseLink’s IndirectList’s API, it says:

    To use an IndirectList: declare the appropriate instance variable with type IndirectList (jdk1.1) or Collection/List/Vector (jdk1.2).

    TopLink will place an IndirectList in the instance variable when the
    containing domain object is read from the datatabase. With the first
    message sent to the IndirectList, the contents are fetched from the
    database and normal Collection/List/Vector behavior is resumed.

    If we view IndirectList sources, we will see, that all the work is delegated to it’s original collection, just like API says.

    Answers

    Does JPA ( Eclipselink in this case) always return IndirectList where Entity have a List?

    Yes, it always does return your specified collection wrapped with IndirectList. Since it delegates all its internal work to the wrapped collection, it preserves the way it works.

    Is ok that list or It should be converted to another list( maybe
    linkedlist)?

    Yes, it is okay to use IndirectList. You don’t convert, you just define any type of collection you want and don’t worry about IndirectList, since it is managed transparently.

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

Sidebar

Related Questions

I'm using JPA 2.0, more precisely Eclipselink. Here's my problem: I have an entity
I have an existing JPA (EclipseLink) project where the desired behaviour is that if
I have one Servlet that does insertion into my database. This is working fine.
I have a JPA entity called ParentAccount that extends an abstract Account entity (see
Does anybody know of a good list of what is new in JPA 2?
When merging JPA entities using JpaTemplate in methods marked with @Async, the entity does
Does anyone know why UsernameExists wont return True. I must have my syntax messed
Why does JPA require a no-arg constructor for domain objects? I am using eclipselink
I have a problem getting this JPA query to work on MS SQL Server
I have SQL Server 2008 and a JPA (EclipseLink) app. I need to be

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.