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

  • SEARCH
  • Home
  • 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 7529803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:44:46+00:00 2026-05-30T04:44:46+00:00

I have written my own java.util.List implementation, and now i want to store it

  • 0

I have written my own java.util.List implementation, and now i want to store it in a MySQL using DataNucleus. My implementation consists of a public class that implements the List interface, and a private class that implements the node for that list.

When I run the SchemaTool in Eclipse, only the table for my Node implementation gets created, and when i run my app, i get the following error:

Persistent class "a.b.c.util.DtvList" has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class.

Here’s the beginning of my List implementing class…

@PersistenceCapable
@Inheritance(strategy=InheritanceStrategy.COMPLETE_TABLE)
public class DtvList<E extends Comparable<E>> implements List {
    @Persistent
    private DtvListNode first = null;
    private DtvListNode last = null;
    private int length = 0;
    public DtvList(){};

Also, i only have an implementation for the add(E object) method, all the other methods throw a RuntimeException. Could that be the problem?

PS I also tried implementing some more methods, such as getIterator and others, and I even tried writing a mapping plugin (http://www.datanucleus.org/extensions/rdbms_java_types.html), but to no avail. The TABLE does not get created by the SchemaTool in the database.

PS/2 Added the Mapping class for the DtvListNode implementation, now i have a table for the DtvList, but not for the DtvListNode. It is still not working. But i still get the exception org.datanucleus.store.exceptions.NoTableManagedException that the DtvList table does not exist.

  • 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-30T04:44:47+00:00Added an answer on May 30, 2026 at 4:44 am

    I don’t think DataNucleus supports custom List implementation for mapping relationships.

    If you Lists are small in size and your implementation can support a copy constructor and to List(), you could map a standard List and implement LoadCallback and StoreCallback to manage the conversion. Obviously if you have a lot of persistent operations on that List, it will get rather messy…

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

Sidebar

Related Questions

I have written my own implementation of java.utils.List. Now I'd like to test it,
In my application I have written my own Logging utility using Java.Util.Logging import java.io.IOException;
I want to convert PDF to SVG. I have written my own Java program
I'm using a java class which is written by someone else but I have
I want to use a list view and I have created my own layout
I have written my own 2-3-4 tree in java. Currently, my code looks like
I have written an application in Java and succesfully compiled it using gcj .
Using google's Protocul Buffers , I have a service already written in Java which
I am using java.util logging classes to create a rolling file appender. I want
I have written my own hadoop program and I can run using pseudo distribute

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.