[Seasar-user:10813] S2Dxo @ConversionRule について
    o.h.
    [E-MAIL ADDRESS DELETED]
       
    2007年 10月  1日 (月) 21:48:23 JST
    
    
  
お世話になっております.長谷川です.
S2Dxo の @ConversionRule についてなのですが、項目名が1文字の場合
に値が設定されず null となります.
以下ソースです
Dxo:
public interface FooDxo {
	@ConversionRule("あ:foo, a:bar, ああ:baz, aa:qux")
	FooBean convert(Map map);
}
Bean:
public class FooBean {
	private String あ;
	private String a;
	private String ああ;
	private String aa;
	public String getA() {
		return a;
	}
	public void setA(String a) {
		this.a = a;
	}
	public String getあ() {
		return あ;
	}
	public void setあ(String あ) {
		this.あ = あ;
	}
	public String getAa() {
		return aa;
	}
	public void setAa(String aa) {
		this.aa = aa;
	}
	public String getああ() {
		return ああ;
	}
	public void setああ(String ああ) {
		this.ああ = ああ;
	}
}
この状態で
	HashMap<String, String> map = new HashMap<String, String>();
	map.put("foo", "HOGE");
	map.put("bar", "FUGA");
	map.put("baz", "BAZ");
	map.put("qux", "QUX");
	FooBean bean = dxo.convert(map);
	System.out.println(bean.getあ());
	System.out.println(bean.getA());
	System.out.println(bean.getああ());
	System.out.println(bean.getAa());
こんな感じでやってみると getあ() getA() が null となります.
#どこが問題なのかわかってないため、ほとんど丸投げです
どこら辺がまずいのでしょうか.
以上、よろしくお願いいたします.
-- 
_/_/
_/_/ mailto: [E-MAIL ADDRESS DELETED]
_/_/ (deprecated: [E-MAIL ADDRESS DELETED])
_/_/
    
    
Seasar-user メーリングリストの案内