次のように仮定します(私はMySQLを使用しています)
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class TclRequest2 {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private long id;
@Persistent(column = "userid")
@Column(jdbcType = "INTEGER", length = 11, allowsNull = "false", defaultValue = "1")
private Member member; // This object table is in another schema
// Getters and setters
}
フィールドmember
は別のスキーマで永続化されます。Member
クラスのアノテーションで「catalog」属性を指定することでこれを解決でき@PersitentCapable
ますが、プロパティファイルでjdoを構成しているため、使用しているプロパティファイルでスキーマ名を指定する柔軟性が失われます。
ありがとうございました。