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 ChessFriend
Messages: 4
Registered: February 2011
Location: France
Junior Member

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.

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 DelahuntFriend
Messages: 1100
Registered: July 2009
Senior Member

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: 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,
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 Friend
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: Tue Oct 06 04:05:24 GMT 2015

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

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