开发者

Can new @Immutable entity be inserted

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜