开发者

Can new @Immutable entity be inserted

开发者 https://www.devze.com 2023-02-17 01:45 出处:网络
I have an entity I want to be insert only. All of the documentation I\'ve found says that an entity annotated with @Immutable cannot be updated, small \"u\" updated. What I need to know is whether a n

I have an entity I want to be insert only. All of the documentation I've found says that an entity annotated with @Immutable cannot be updated, small "u" updated. What I need to know is whether a new immutable instance can be inserted? The entity is a 开发者_开发百科log entry, so I just need the insert. No updates nor deletes.


Yes, @Immutable entities can be inserted.

Note however that @Immutable on a Collection means that no additions or deletions to/from the Collection can happen.

0

精彩评论

暂无评论...
验证码 换一张
取 消