Skip to content

Commit

Permalink
ignore dto warning for authority
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 15, 2024
1 parent 03334ed commit 1261204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/spring-boot/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public void set${javaBeanCase(propertyName)}(${propertyType} ${propertyName}) {
}
},
checkDtoRelationships({ entity, entityName, relationship }) {
if (entity.dto !== relationship.otherEntity.dto) {
if (entity.dto !== relationship.otherEntity.dto && !relationship.otherEntity.builtIn) {
this.log.warn(
`Relationship between entities with different DTO configurations can cause unexpected results. Check ${relationship.relationshipName} in the ${entityName} entity.`,
);
Expand Down

0 comments on commit 1261204

Please sign in to comment.