Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » JPA Tools > Generate Entities from Tables, @Column strange format( )
JPA Tools > Generate Entities from Tables, @Column strange format [message #1695808] Tue, 19 May 2015 13:00 Go to next message
Gunther Valkom is currently offline Gunther ValkomFriend
Messages: 3
Registered: June 2012
Junior Member
When using "Generate Entities from Tables" some columns are mapped to @Column(name="\"${column_name}\"") instead of @Column.
${column_name} is the actual column name.

Ex. if the column name is TYPE then this is generated ---> @Column(name="\"TYPE\"").

Can someone explain why this is happening.
Is this related to the column name ? (hopefully not)

Re: JPA Tools > Generate Entities from Tables, @Column strange format [message #1695824 is a reply to message #1695808] Tue, 19 May 2015 14:29 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
It is indeed related to the column name. A column name will be delimited if the database platform you are using has listed that column name as a reserved word. In this case, it is very likely that "TYPE" is reserved, and as a result, to avoid confusion at runtime with generated SQL, this column name will be delimited to ensure there is no confusion with reserved words.

Previous Topic:The configured runtime is insufficient to provide an implementation for JAXB 2.2
Next Topic:mapping file is resource in a dependency...eclipse complains
Goto Forum:

Current Time: Wed Mar 21 20:45:34 GMT 2018

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

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