Skip to content

updated updateEntity on Feature/update ping logic branch#20

Open
mohirose wants to merge 4 commits intomainfrom
feature/update-ping-logic
Open

updated updateEntity on Feature/update ping logic branch#20
mohirose wants to merge 4 commits intomainfrom
feature/update-ping-logic

Conversation

@mohirose
Copy link
Contributor

@mohirose mohirose commented Mar 4, 2026

No description provided.

@mohirose mohirose requested a review from ushios March 4, 2026 04:35
Comment on lines -193 to 196
// 指定された ID を持つEntityを削除
public ResponseSpec deleteEntity(String entityId) {
return this.deleteEntity(entityId, null);
// Object版(Mapに変換してMap版に委譲)
public ResponseSpec updateEntity(String id, String type, Object o) {
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JavaTimeModule());
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);

Map<String, Object> m = mapper.convertValue(o, new TypeReference<Map<String, Object>>() {});
return updateEntity(id, type, m);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleteEntityは削除しない方がいいかも

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.

2 participants