Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EclipseLink JPA2.0 orm table name prefix help(Choose a table name prefix with eclipselink an jpa 2.0)
EclipseLink JPA2.0 orm table name prefix help [message #630090] Thu, 30 September 2010 15:34 Go to next message
miguel is currently offline miguelFriend
Messages: 4
Registered: September 2010
Junior Member
Hi,

I need to choose a name prefix for my data base tables, with JPA2 and eclipselink.

For this i try to do:

add:
<mapping-file>META-INF/orm.xml</mapping-file> to my persistence.xml

and create: orm.xml in the configuration folder with the code:

<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings version="2.0"
xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<property name="SQL_TABLE_NAME_PREFIX" value="TBL_"></property>
</entity-mappings>

but nothing ocurrs, what is the way for this?

thanks.
Re: EclipseLink JPA2.0 orm table name prefix help [message #630125 is a reply to message #630090] Thu, 30 September 2010 17:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Miguel,

I'm not sure if this question is about Teneo or one best asked on the
EclipseLink newsgroup?

miguel wrote:
> Hi,
>
> I need to choose a name prefix for my data base tables, with JPA2 and
> eclipselink.
>
> For this i try to do:
>
> add:
> <mapping-file>META-INF/orm.xml</mapping-file> to my persistence.xml
>
> and create: orm.xml in the configuration folder with the code:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <entity-mappings version="2.0"
> xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <property name="SQL_TABLE_NAME_PREFIX" value="TBL_"></property>
> </entity-mappings>
>
> but nothing ocurrs, what is the way for this?
> thanks.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EclipseLink JPA2.0 orm table name prefix help [message #630157 is a reply to message #630125] Thu, 30 September 2010 20:01 Go to previous message
miguel is currently offline miguelFriend
Messages: 4
Registered: September 2010
Junior Member
You have reason I going to copy the question in eclipselink newsgroup

sorry
Previous Topic:Creating centralised datatypes model
Next Topic:Incorrect use of namespace prefixes when namespace-prefix is overridden in an xsd:any element
Goto Forum:
  


Current Time: Thu Apr 25 03:59:01 GMT 2024

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

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

Back to the top