I have a feeling that adding fields marked with @Transient annotation to entity is very bug-prone. A

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-05-28T11:13:13Z Indexed on 2010/05/28 11:31 UTC
Read the original article Hit count: 216

Filed under:
|
|
|
|

I have some philosophical feeling that adding to an entity fields which doesn't mapped to the DB is a wrong way of solving problems.

But are there any concrete situations where using @Transient fields leads to implicit and hard fixing problems?

For example, is it possible that adding/removing 2nd level cache will break our app when there are @Transient fields in our entities?

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate