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.
精彩评论