-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
WIP: Entity Generator #37
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many errors in the generated code. Let us fix them before we merge this.
In order to make it run, do the following.
Open
.yo-rc.json
file
Copy contents inside "generator-jhipster-kotlin"
and put them inside the generator-jhipster
too
@@ -0,0 +1,34 @@ | |||
<%# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename this file to .kt
generators/entity-server/files.js
Outdated
const SERVER_MAIN_SRC_KOTLIN_DIR = `${constants.MAIN_DIR}kotlin/`; | ||
const SERVER_TEST_SRC_KOTLIN_DIR = `${constants.TEST_DIR}kotlin/`; | ||
|
||
// const BASE_DIR = '../../../node_modules/generator-jhipster/generators/entity-server/templates/'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this into > const BASE_DIR = '../../../../../../node_modules/generator-jhipster/generators/entity-server/templates';
condition: generator => generator.databaseType === 'sql', | ||
path: SERVER_MAIN_RES_DIR, | ||
templates: [{ | ||
file: 'config/liquibase/changelog/added_entity.xml', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use file: `${BASE_DIR}/src/main/resources/config/liquibase/changelog/added_entity.xml`,
From #36
@sendilkumarn @hberndt FYI