- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
WIP : first commit modification #717
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
base: main
Are you sure you want to change the base?
Conversation
2bf48ed    to
    967f9e3      
    Compare
  
    1335bbd    to
    967f9e3      
    Compare
  
    967f9e3    to
    6d45fcc      
    Compare
  
    Signed-off-by: basseche <[email protected]>
069ef25    to
    281c14f      
    Compare
  
    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.
| @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) | ||
| @JoinColumn(name = "operational_limit_group_id", foreignKey = @ForeignKey(name = "operational_limit_group_modification_id_fk")) | ||
| private List<LimitsPropertyModificationEntity> limitsProperties; | ||
|  | ||
| private static List<LimitsPropertyModificationEntity> toLimitPropertyEntities(List<LimitsPropertyInfos> properties) { | ||
| List<LimitsPropertyModificationEntity> result = new ArrayList<>(); | ||
| if (!CollectionUtils.isEmpty(properties)) { | ||
| result = properties.stream().map(LimitsPropertyModificationEntity::fromLimitsPropertyInfos).toList(); | ||
| } | ||
| return result; | ||
| } | 
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.
I think that this could be a List<LimitsPropertyEntity> (given that we only create properties and never modify, the structure is the same)
Then LimitsPropertyModificationEntity wouldn't be needed (for now anyway)
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.
By the way please remove WIP from the title.

No description provided.