Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はdb4oをDBMSとして使用していますが、質問があります。
モデルクラスのフィールドをデータベースに保存しないように指定する方法はありますか?
@Transientリレーショナルデータベースを操作するときの注釈に似たものはありますか?
@Transient
Javaに組み込まれている一時的なマーカーを使用するだけです。
private transient String myField;
それとも、使用できない特別な理由がありますか?
また、静的JavaフィールドはDB4Oによって自動的に永続化されません。
http://community.versant.com/documentation/reference/db4o-8.1/java/reference/Content/advanced_topics/type_handling/static_fields_and_enums/static_fields_api.htm