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

WIP: Entity Generator #37

Merged
merged 7 commits into from
Sep 4, 2018
Merged

WIP: Entity Generator #37

merged 7 commits into from
Sep 4, 2018

Conversation

deepu105
Copy link
Member

@deepu105

This comment has been minimized.

@deepu105

This comment has been minimized.

Copy link
Member

@sendilkumarn sendilkumarn left a 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 @@
<%#
Copy link
Member

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

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/';
Copy link
Member

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',
Copy link
Member

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`,

@sendilkumarn sendilkumarn reopened this Sep 4, 2018
@sendilkumarn sendilkumarn merged commit c5e1953 into master Sep 4, 2018
@sendilkumarn sendilkumarn deleted the kotlin-entity branch February 1, 2019 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants