jaxio / celerio-angular-quickstart

Generate an Angular 5 CRUD application from an existing database schema (we provide a sample one)
Apache License 2.0
479 stars 138 forks source link

Generate entity add simple quote into table name tag #22

Closed achablowski closed 7 years ago

achablowski commented 7 years ago

Hello,

I have some trouble with the entity generation. I have a table named "Delay", but when the template generate the corresponding entity, a simple quote is added to the name, and then i get oracle problems in request "Table or view no exist".

@Table(name = " ` DELAY ` "... instead of @Table(name = "DELAY"...

Regards,

Thanks.

nromanetti commented 7 years ago

Hi, Celerio considers the DELAY as a reserved keyword (used in some version of PLSQL) and escape it... but apparently it does not escape it properly since JPA 2. Have a look at http://stackoverflow.com/questions/2153881/using-reserved-jpql-keywords-with-jpa

Since you are using Oracle, could you please do me a favor and try to escape it as specified by JPA 2, that is:

@Table(name="\"DELAY\""...

If it works out I can patch Celerio. Thanks.

achablowski commented 7 years ago

Hi,

Thanks, it's okay i renamed the table.

Regards,