Skip to content

Commit

Permalink
Update generator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Jul 30, 2024
1 parent eb89d41 commit 45561a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/spring-boot/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default class extends BaseApplicationGenerator {
},
prepareEntityForKotlin({ entity }) {
const { primaryKey } = entity;
if (primaryKey) {
if (primaryKey && primaryKey.name === 'id') {
// Kotlin does not support string ids specifications.
primaryKey.javaBuildSpecification = 'buildRangeSpecification';
for (const field of primaryKey.fields) {
Expand Down

0 comments on commit 45561a0

Please sign in to comment.