動作しませんSettlement
エンティティProduct
エンティティにProduct
エンティティ@Transientは、私が持っている
@Entity
public class Product {
@Transient
private String enabled;
に関連ProductSubscription
エンティティ
@Entity
@Table(name = "subscriptionproduct")
public class ProductSubscription {
@ManyToOne
@JoinColumn(name = "product_id")
private Product product;
に関連
@Entity
@Table(name = "settlement")
public class Settlement {
@ManyToOne
@JoinColumn(name = "subscription_x_product_id")
private ProductSubscription productSubscription;
私はフィールドがあるenabled
@org.springframework.data.annotation.Transient
と注釈されています。私はそれが私がDBからロードされることからenabled
フィールドを無視することができますどのように例外をCaused by: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'enabled'.
を与えるSettlementRepository.findAll();
呼び出すとき も私はリポジトリ
public interface SettlementRepository extends JpaRepository<Settlement, Integer>
がありますか?
'enabled'の設定者にアノテーションがありますか? – Jens
@Jensいいえ、セッターやゲッターに注釈がありません。 –