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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:52:50+00:00 2026-05-27T05:52:50+00:00

is it possible to access the information in <persistence-unit-metadata> through Java API? <persistence-unit-metadata> <persistence-unit-defaults>

  • 0

is it possible to access the information in <persistence-unit-metadata> through Java API?

<persistence-unit-metadata>
    <persistence-unit-defaults>
        <schema>MySchema</schema>
    </persistence-unit-defaults>
</persistence-unit-metadata>

I would like to read the schema “MySchema” via JPA API or EclipseLink API, which is the implementation I use.

Something like: entityManager.getDefaults().getSchema();
It’s OK to cast or use any EclipseLink class, that’s fine for this.

Thank you

  • 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-27T05:52:51+00:00Added an answer on May 27, 2026 at 5:52 am

    After debugging for a while I found a solution to access the schema of an entity.

    EntityType<MyEntity> entity = emf.getMetamodel().entity(MyEntity.class);
    
    EntityTypeImpl entityTypeImpl = (EntityTypeImpl) entity;        
    ClassDescriptor descriptor =  entityTypeImpl.getDescriptor();
    
    String schema = descriptor.getDefaultTable().getTableQualifier();
    

    Looking for an easier and better way to access the information!
    Thank you so much.

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

Sidebar

Related Questions

Is it possible to access information like the alarm clock time and change it
I would like to know if it's possible to access the client's hardware via
I'm writing an application that uses GDB to access information through java. Using Runtime.getRuntime.exec,
Is it possible to access the 'notes' field of an object through the Maya
I am using JACOB to access system information through WMI. I have not found
Is it possible (and how) to access Thread Information Block of a thread of
Is it possible to access a function's v-table at runtime? Can meta-information such as
I've read that it is possible to access Facebook Insights programmatically : The Graph
Is it possible to access an element on a Master page from the page
Is it possible to access the Abstract Syntax Tree(AST) inside the javac.exe programmatically? Could

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.