forked from jhipster/generator-jhipster-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider entitySuffix and dtoSuffix refs jhipster#209
- Use asDto and asEntity methods provided by JHipster (this ensures that the entitySuffix and dtoSuffix configOptions are used) - Fix error where Instant fieldType did not work with sqlite
- Loading branch information
Showing
24 changed files
with
164 additions
and
150 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
generators/entity-server/templates/server/src/repository/entity.repository.ts.ejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { EntityRepository, Repository } from 'typeorm'; | ||
import { <%= entityClass %> } from '../domain/<%= entityFileName %>.entity'; | ||
import { <%= asEntity(entityClass) %> } from '../domain/<%= entityFileName %>.entity'; | ||
|
||
@EntityRepository(<%= entityClass %>) | ||
export class <%= entityClass %>Repository extends Repository<<%= entityClass %>> {} | ||
@EntityRepository(<%= asEntity(entityClass) %>) | ||
export class <%= entityClass %>Repository extends Repository<<%= asEntity(entityClass) %>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.