Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Custom reverse engineering strategy(Custom reverse engineering strategy)
Custom reverse engineering strategy [message #655841] Tue, 22 February 2011 19:26 Go to next message
Chess is currently offline Chess
Messages: 4
Registered: February 2011
Location: France
Junior Member
Hello,

I'am looking for a way to customize reverse engineering strategy (eg : hibernate + reversestrategy class).

When generating entity, Eclipse default mode remove "_" in property name (if database field was "test_Me", the field become "testMe".

I can't rename field in database and some entity class have been already define. So, is there a way to change default generated mapping strategy.

Thanks.
Re: Custom reverse engineering strategy [message #656180 is a reply to message #655841] Thu, 24 February 2011 13:22 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1034
Registered: July 2009
Senior Member
Hello,

This is a forum for EclipseLink, a JPA provider. You might want to try posting your question on the Dali forum which is more likely the plugin you are using to generate your Entities:
http://www.eclipse.org/forums/index.php?t=thread&frm_id= 113&S=42c514de87466d9931d50093b8656452

Check that the property being generated also is annotated with the @Column(name="test_Me"), ast his annotation defines which database column should be used regardless of the property name.

Best Regards,
Chris
Re: Custom reverse engineering strategy [message #656213 is a reply to message #655841] Thu, 24 February 2011 15:16 Go to previous message
Alberto  is currently offline Alberto
Messages: 7
Registered: February 2011
Junior Member
No Message Body

[Updated on: Thu, 24 February 2011 15:19]

Report message to a moderator

Previous Topic:unwrap jdbc connection
Next Topic:[Resolved] Load a external jar with entities and persistence.xml
Goto Forum:
  


Current Time: Sat Oct 25 06:28:19 GMT 2014

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

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