0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DynamoDBTableアノテーション使用時の注意点

Posted at

DynamoDBTableアノテーションを使ったモデルクラスを作るときは、
・引数無しのコンストラクタが必要
・Getter/SetterはAttributeかどうかに関係なく基本的に対で必要。片方しかないと

クラス名[set/getの後の名前]; could not unconvert attribute
```で怒られる
・Getter/Setterのどちらか片方しか必要ない場合は@DynamoDBIgnoreを付ける

Tipsとして、Lombokの@NoArgsConstructorと@Dataを使うことをお勧めする。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?