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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:54:14+00:00 2026-05-27T16:54:14+00:00

First, appologies for the long post, I have tried to cut it down as

  • 0

First, appologies for the long post, I have tried to cut it down as much as possible.

I am trying to persist an object using JPA. While most of the objects fields are persisted fine, one is skipped completely, yet no errors are throw.

In short, I am trying to persist an instance of ListedItemDetail. Unfortuanately, the BidCollection field is being totally ignored, and there is no trace of it in the database. I have no idea why..

I have included the relavent source. The source was generated from 3rd party schema. I am using orm.xml for the JPA mapping, and have included the reavent bits below too.

public class ListedItemDetail  extends Item implements Serializable{
    protected BidCollection bids;
}

public class Item extends ExtensibleDataObject implements Serializable {
    protected int listingId;
}

public class BidCollection extends PagedCollectionOfBidte0R55Be implements
Serializable{
    private final static long serialVersionUID = 1L;
}

public class PagedCollectionOfBidte0R55Be implements Serializable {
    private final static long serialVersionUID = 1L;
    protected Integer totalCount;
    protected Integer page;
    protected Integer pageSize;
    protected InnerCollectionOfBidte0R55Be list;
}

public class InnerCollectionOfBidte0R55Be implements Serializable {
    private final static long serialVersionUID = 1L;
    protected List<Bid> bid;
}

public class Bid extends ExtensibleDataObject implements Serializable {
    private final static long serialVersionUID = 1L;
    protected String account;
    protected Boolean isByMobile;
    protected Boolean isByProxy;
    protected Timestamp bidDate;
    protected Boolean isBuyNow;
    protected Member bidder;
}

orm.xml:

<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings version="2.0">
<entity class="nz.co.trademe.api.v1.ListedItemDetail">
    <attributes>
         <cascade>
             <cascade-persist/>
         </cascade>
        <embedded name="bids">
        </embedded>
    </attributes>
</entity>

<entity class="nz.co.trademe.api.v1.Item">
    <inheritance strategy="JOINED"/>
    <discriminator-column discriminator-type="STRING"/>
    <attributes>
        <id name="listingId">
        </id>
    </attributes>
</entity>


<embeddable class="nz.co.trademe.api.v1.PagedCollectionOfBidte0R55Be">
</embeddable>

<embeddable class="nz.co.trademe.api.v1.InnerCollectionOfBidte0R55Be">
    <attributes>
        <element-collection name="bid">
        </element-collection>
    </attributes>
</embeddable>

<embeddable class="nz.co.trademe.api.v1.Bid">
</embeddable>

<embeddable class="nz.co.trademe.api.v1.BidCollection">
</embeddable>
</entity-mappings>
  • 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-05-27T16:54:15+00:00Added an answer on May 27, 2026 at 4:54 pm

    The issue is related to BidCollection being embeddable and using inheritance. JPA does not support inheritance with embeddables.

    Technically EclipseLink does support inheritance with embeddables, but not currently through JPA annotations.

    You could either remove the inheritance, or try setting up the inheritance using a DescriptorCustomizer.

    Your model also seems very convoluted, you might want to rethink it.

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

Sidebar

Related Questions

First off, I am using Windows XP. I have multiple hard drives and it
first post, so play nice! I have a fairly basic question about Python dictionaries.
First off - apologies for the poor title, I have no idea how to
First, let's get the security considerations out of the way. I'm using simple authentication
First, apologies,this should be simple but I've had too much coffee and cannot wrap
My apologies if it is quite confusing. I have this two main interfaces. First
[Apologies for the long winded explanation] I have inherited an aold application with a
First: my apologies if I am getting the nomenclature wrong! Basically, I have a
I have a small doubt, so apologies first. I am creating an iPhone application
First off, please accept my apologies if this question is basic, I mainly have

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.