Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom columns names with @fieldNameAsDatabaseColumn(colum_name) in JDL #25348

Closed
1 task done
jperezdelafuente opened this issue Feb 27, 2024 · 6 comments
Closed
1 task done

Comments

@jperezdelafuente
Copy link
Contributor

Overview of the feature request

Related to: #15297

@fieldNameAsDatabaseColumn(colum_name) works well with Jhipster 8.1 to custom column names
But I don't know if this is still an internal feature or could be used since Jhipster 7.2
It is not documented in: https://www.jhipster.tech/jdl/entities-fields
I think this feature for allow custom column names is very interesting and should be documented

Motivation for or Use Case
  • You have to 'connect' the new application to an existing database, you cannot align sql column name with java entities field names (usualy sql naming conventions give eyespain).

  • You have to respect a java naming convention + a corportate/DBAs SQL naming convention.

Related issues or PR

Related to: #15297

  • Checking this box is mandatory (this is just to show you read everything)
@mshima
Copy link
Member

mshima commented Feb 28, 2024

PR is welcome.

@jperezdelafuente
Copy link
Contributor Author

In June 2023 there was already doubt about the current status of this feature:

I don't know if this is still an internal feature or could be used since Jhipster 7.2
although it works it is not documented in: https://www.jhipster.tech/jdl/entities-fields
Perhaps because it is something internal, which could change suddenly in the future.

@OmarHawk
Copy link
Contributor

In June 2023 there was already doubt about the current status of this feature:

I don't know if this is still an internal feature or could be used since Jhipster 7.2 although it works it is not documented in: https://www.jhipster.tech/jdl/entities-fields Perhaps because it is something internal, which could change suddenly in the future.

I guess, the PR that @mshima mentions is for making this a non-internal feature (by adding some additional test + enhancing the documentation.) ;-)

@mshima
Copy link
Member

mshima commented Mar 1, 2024

@mshima
Copy link
Member

mshima commented Mar 1, 2024

Those properties should be stable for v8 cycle.

@mshima
Copy link
Member

mshima commented Mar 8, 2024

PR is welcome to add documentation about this property.
Closing as it’s a minor customization.

@mshima mshima closed this as completed Mar 8, 2024
@deepu105 deepu105 added this to the 8.2.0 milestone Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants