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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:15:22+00:00 2026-05-26T08:15:22+00:00

I intend creating a restful webservices with spring and Datanucleus JDO for persistence. I

  • 0

I intend creating a restful webservices with spring and Datanucleus JDO for persistence.
I have read a couple of materials and i think i understand safe for some grey areas.
I have created my domain/Model classes but unsure of certain things. Here are my questions

1) Is it possible to annotate my persistent Classes with @XmlRootElement and @PersistenceCapable. I ask this because the same persistent classes will be marshalled and unmarshalled to and from xml.
For example

@PersistenceCapable
@XmlRootElement(name="miscode")
public class MisCode {

}

2) I already have a database i need to connect to, so how do i map each Model e.g(MisCode.java) class to it’s corresponding table name in the database. Is the .orm file necessary and where do i put it?

3) Is persistence.xml necessary and where does it come in?

Thank you all.

  • 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-26T08:15:23+00:00Added an answer on May 26, 2026 at 8:15 am
    1. Why wouldn’t two independent annotations be usable?

    2. Why not read the docs for DataNucleus about how to map to a schema?
      http://www.datanucleus.org/products/accessplatform_3_0/jdo/orm/schema_mapping.html

    3. No. As above, read the docs of the JDO implementation you chose, or read the JDO spec.

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

Sidebar

Related Questions

I'm creating a OS X application that I intend to have a plug-in architecture.
I intend to develop a J2ME application, that should be able to read words
I have found various topics here and elsewhere on creating an intent for sending
I have the very common problem of creating an index for an in-disk array
My compilers class is creating a language that we intend to compile to Java
I have a group of objects which I am creating a class for that
I intend in creating a few analog clocks on Visual Studio 2008 (C#) for
In a site with multiple cultures support I intend to have the following routes:
I have the following confguration in my JSF Spring application: <bean id=userSessionBean class=com.vanilla.beans.UserSessionBean scope=session>
When creating a new ASP.NET application in Visual Studio, a couple of files and

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.