Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Schema name from orm.xml
Schema name from orm.xml [message #508295] Mon, 18 January 2010 05:44 Go to next message
Eclipse UserFriend
Hi all,

is there a way to get the schema name I have set in the orm.xml??

<schema>myschema</schema>

I check in EntityManager and EntityManagerFactory objects but I didn't
found the schema name string.

I need the schema name in order to set my native query properly.

BR,
Enrico
Re: Schema name from orm.xml [message #508365 is a reply to message #508295] Mon, 18 January 2010 10:05 Go to previous message
Eclipse UserFriend
The schema can be obtained from the EclipseLink ClassDescriptor.

i.e.
em.unwrap(JpaEntityManager.class).getServerSession().getDesc riptor(MyClass.class).getTables().get(0).getTableQualifier()

Previous Topic:Using a Factory to create entity object instances
Next Topic:Problems with auto-generated sequence
Goto Forum:
  


Current Time: Wed Jul 23 04:59:53 EDT 2025

Powered by FUDForum. Page generated in 0.12084 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top