[seasar-dotnet:1052] DBFlute - 共通カラムのフラグ設定について
k.moriwaki
[E-MAIL ADDRESS DELETED]
2008年 10月 22日 (水) 17:51:59 JST
森脇と申します。
共通カラムの設定 - 「補足:区分値機能との併用」を試そうと設定してみたのですが
出力されたソースがコンパイルエラーになりました。
----- エラーログ -----
エラー 1 'App.DB.AllCommon.EntityDefinedCommonColumn' に
'ClassifyDeleteFlgOff'
の定義がありません。 C:hoge\source\App.DB\AllCommon\Bhv\AbstractBehaviorWritable.cs 219 20 App.DB
出力されたソースを見たところ AbstractBehaviorWritable.cs の共通カラムの値を
設定しているメソッドでエラーが発生しており、EntityDefinedCommonColumn
に論理削除フラグを設定するメソッドが定義されていないためエラーになっているようです。
設定は以下の通りですが、何かたいりない設定などありますでしょうか?
参考としたページ
http://dbflute.sandbox.seasar.org/contents/setup/commoncolumn.html
===== DBFlute 設定ファイル =====
----- commonColumnMap.dfprop -----
map:{
; commonColumnMap = map:{
; DELETE_FLG = CHAR
}
; beforeInsertMap = map:{
; DELETE_FLG = $entity.ClassifyDeleteFlgOff()$$Semicolon$$
}
; beforeUpdateMap = map:{
}
}
===== 出力されたソース =====
----- AbstractBehaviorWritable.cs -----
(略)
protected virtual void SetupCommonColumnOfInsertIfNeeds(Entity
targetEntity) {
if (!IsEntityDefinedCommonColumn(targetEntity)) {
return;
}
EntityDefinedCommonColumn entity =
(EntityDefinedCommonColumn)targetEntity;
if (!entity.CanCommonColumnAutoSetup()) {
return;
}
if (_log.IsDebugEnabled) {
_log.Debug("...Filtering entity of INSERT about the
column columns of " + this.TableDbName);
}
entity.ClassifyDeleteFlgOff();
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ※※※ ここでエラー ※※※
}
(略)
----- EntityDefinedCommonColumn -----
(略)
public interface EntityDefinedCommonColumn : Entity {
String DeleteFlg { get; set; }
void DisableCommonColumnAutoSetup();
bool CanCommonColumnAutoSetup();
}
(略)
seasar-dotnet メーリングリストの案内