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

rework getPkType #20917

Merged
merged 1 commit into from
Jan 25, 2023
Merged

rework getPkType #20917

merged 1 commit into from
Jan 25, 2023

Conversation

mshima
Copy link
Member

@mshima mshima commented Jan 25, 2023

Implement database type constants structure.

Cleanup #20286.


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@@ -57,7 +56,8 @@ export function createUserEntity(customUserData = {}, application) {
loadRequiredConfigIntoEntity(user, this.jhipsterConfigWithDefaults);

const oauth2 = user.authenticationType === OAUTH2;
const userIdType = oauth2 || user.databaseType !== SQL ? TYPE_STRING : getPkType(this.jhipsterConfig, user.databaseType);
// If oauth2 or databaseType is cassandra, force type string, otherwise keep undefined for later processing.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These utils class should disappear: is it possible to extracts these methods on the go when modified?

@Tcharl
Copy link
Contributor

Tcharl commented Jan 25, 2023

LGTM

@DanielFran DanielFran merged commit 2b561d1 into jhipster:main Jan 25, 2023
@mshima mshima deleted the skip_ci-pk-type branch January 25, 2023 18:19
@DanielFran DanielFran added this to the 8.0.0-beta.1 milestone Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants