先日までのまとめと今後

先日までの問題点

  1. DxoのNoSuchMethodError
  2. radioボタンの表示が出来ない点について
  3. 投稿記事一覧を、entity.Articleのリストにするか、ArticlePageのリストにするか、表示用にVOを作るか

1については、まぁ保留。とりあえずBeanUtilsでも使用しておく
rootPackage.dxo.ArticlePageDxo
rootPackage.web.article.ArticlePageDxo
ともに試したけど駄目でした。
以下中身(publicでも試してみた)

hoge.mokkouyou.bbs.entity.Article convert(ArticlePage articlePage);

ArticlePage convert(hoge.mokkouyou.bbs.entity.Article article);

void convert(hoge.mokkouyou.bbs.entity.Article src, ArticlePage dest);
void convert(ArticlePage src, hoge.mokkouyou.bbs.entity.Article dest);

以下のエラー

DEBUG 2006-08-21 09:52:08,328 [http-8080-Processor25] BEGIN hoge.mokkouyou.bbs.web.article.ArticlePageDxo#convert([ArticlePage: id: null name: 11 mail: 222 title: 22 message: 2223333 color: red password: 44444], [Article: id: null name: null mail: null title: null message: null color: null password: null])
DEBUG 2006-08-21 09:52:09,296 [http-8080-Processor25] END hoge.mokkouyou.bbs.web.article.ArticlePageDxo#convert([ArticlePage: id: null name: 11 mail: 222 title: 22 message: 2223333 color: red password: 44444], [Article: id: null name: null mail: null title: null message: null color: null password: null]) Throwable:java.lang.NoSuchMethodError: hoge.mokkouyou.bbs.web.article.ArticlePageDxo$$EnhancedByS2AOP$$dffa9d.convert(hoge.mokkouyou.bbs.web.article.ArticlePage, hoge.mokkouyou.bbs.entity.Article)
2006-08-21 09:52:09,968 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/S2BBS].[facesServlet] - サーブレット facesServlet のServlet.service()が例外を投げました
java.lang.NoSuchMethodError: hoge.mokkouyou.bbs.web.article.ArticlePageDxo$$EnhancedByS2AOP$$dffa9d.convert(hoge.mokkouyou.bbs.web.article.ArticlePage, hoge.mokkouyou.bbs.entity.Article)
at hoge.mokkouyou.bbs.web.article.ArticlePageDxo$$EnhancedByS2AOP$$dffa9d$$MethodInvocation$$convert2.proceed(MethodInvocationClassGenerator.java)
at org.seasar.framework.aop.interceptors.ClassLoaderAwareTraceInterceptor.invoke(ClassLoaderAwareTraceInterceptor.java:51)
at hoge.mokkouyou.bbs.web.article.ArticlePageDxo$$EnhancedByS2AOP$$dffa9d$$MethodInvocation$$convert2.proceed(MethodInvocationClassGenerator.java)
at hoge.mokkouyou.bbs.web.article.ArticlePageDxo$$EnhancedByS2AOP$$dffa9d.convert(ArticlePageDxo$$EnhancedByS2AOP$$dffa9d.java)<<


2についてはselectで対応
3について悩みどころ。Articleはエンティティとはいえ、所詮VOだから・・・
と割り切ってもいいけど少し気持ち悪い。(よくないってつっこみが多そうだけど)
Pageのリストは・・・これまたちょっと気持ち悪い
表示用のVO作ると。。。Articleとまったく一緒になるんだよね。今のところ。気持ち悪い。
でもまぁ一番現実的かなという事で、VO作成という方向で
すすめていこうと思います。



そいで今日はとりあえず、S2Daoに手をつけます

追記

S2DAO使用したら、アノテーション・・・というかフィールド追加になったので差別化はかれたしね。
むしろ必要になった。