2014-02-14 3 views
0

맨틀 데이터를로드하고 있는데 레코드가 작성 전용 (불변)이라는 오류가 표시됩니다. 나는 그것이 나에게 영향을 미칠 것이라고 생각하지 않지만 그것이 대답할만한 가치가있을 것이라고 생각했다.무엇이 불변의 레코드입니까?

Loading entity data from [file:/home/byersa/dev/moqui-on/runtime/mantle/mantle-udm/data/ZzcProductDemoData.xml] 
--- 195489 [main] WARN moqui.impl.context.TransactionFacadeImpl 
Transaction rollback. The rollback was originally caused by: Error loading entity data org.xml.sax.SAXException: Error storing entity [mantle.product.asset.AssetDetail] value: org.moqui.entity.EntityException: Entity [mantle.product.asset.AssetDetail] is create-only (immutable), cannot be updated. org.moqui.entity.EntityException: Entity [mantle.product.asset.AssetDetail] is create-only (immutable), cannot be updated. 

답변

0

엔터티. @ 생성 전용 속성 (true로 설정)을 사용하는 엔터티의 설정입니다.

데이터가 이미있는 데이터 (즉, DB를 정리하지 않고 두 번째 데이터로드)로 데이터베이스에로드되기 때문에 데이터로드 중에이 오류가 표시됩니다.

AssetDetail (Mantle Business Artifacts의 일부)은 실행 기록 엔티티이며 레코드는 생성 만되고 업데이트되지는 않으므로 생성 전용으로 설정됩니다.