[Seasar-user:7114] Re: [S2Dxo] Tigerのenumの変換について

加藤 潤一 [E-MAIL ADDRESS DELETED]
2007年 4月 8日 (日) 12:50:40 JST


六さん,

加藤です.

いろいろ参考になりました.ありがとうございました.

> -----Original Message-----
> From: [E-MAIL ADDRESS DELETED]
> [mailto:[E-MAIL ADDRESS DELETED]] On Behalf Of 六
> Sent: Sunday, April 08, 2007 2:33 AM
> To: [E-MAIL ADDRESS DELETED]
> Subject: [Seasar-user:7111] Re: [S2Dxo] Tigerのenumの変換について
>
> 六です。
>
> 列挙とDxoで色々とやってみました。
>> http://d.hatena.ne.jp/rokugen/20070308
> http://d.hatena.ne.jp/rokugen/20070309
>
> 実験の様子が時系列に記してあるので要点がまとまってませんが、
> お役に立てれば幸甚であります。
>
> 列挙→文字列の変換はtoString()をオーバーライドすれば簡単ですよ。
> ややバッドノウハウ気味ですが。逆が大変。
>
> 加藤 潤一 wrote:
> > 加藤 (j5ik2o) です.
> >
> > S2Dxoについて教えてください.
> >
> > Tigerの列挙型をプロパティに持ったオブジェクトをエンティティに変換し
> ようとしているのですが,ConversionRuntimeExceptionです.
> > 独自のコンバータを作らないといけないでしょうか?作り方を教えてくださ
> いm(_ _)m
> >
> > org.seasar.extension.dxo.exception.ConversionRuntimeException:
> [WSSR0000]org.seasar.chronos.ThreadPoolType
> >         at
> org.seasar.extension.dxo.converter.impl.NumberConverter.convert(Number
> Converter.java:57)
> >         at
> org.seasar.extension.dxo.converter.impl.BeanConverter.setValue(BeanCon
> verter.java:155)
> >         at
> org.seasar.extension.dxo.converter.impl.BeanConverter.setValues(BeanCo
> nverter.java:106)
> >         at
> org.seasar.extension.dxo.converter.impl.BeanConverter.convert(BeanConv
> erter.java:80)
> >         at
> org.seasar.extension.dxo.converter.impl.BeanConverter.convert(BeanConv
> erter.java:70)
> >         at
> org.seasar.extension.dxo.command.impl.BeanToBeanDxoCommand.convertScal
> ar(BeanToBeanDxoCommand.java:42)
> >         at
> org.seasar.extension.dxo.command.impl.AbstractDxoCommand$ScalarConvers
> ionHelper.convert(AbstractDxoCommand.java:114)
> >         at
> org.seasar.extension.dxo.command.impl.AbstractDxoCommand.execute(Abstr
> actDxoCommand.java:58)
> >         at
> org.seasar.extension.dxo.DxoInterceptor.invoke(DxoInterceptor.java:49)
> >         at
> org.seasar.chronos.store.dxo.TaskDxo$$EnhancedByS2AOP$$1612190$$Method
> Invocation$$toEntity0.proceed(MethodInvocationClassGenerator.java)
> >         at
> org.seasar.chronos.store.dxo.TaskDxo$$EnhancedByS2AOP$$1612190.toEntit
> y(TaskDxo$$EnhancedByS2AOP$$1612190.java)
> >         at
> org.seasar.chronos.store.TaskStore.saveToStore(TaskStore.java:32)
> >         at
> org.seasar.chronos.store.task.strategy.impl.StoredTaskExecuteStrategyD
> ecorator.save(StoredTaskExecuteStrategyDecorator.java:24)
> >         at
> org.seasar.chronos.task.strategy.impl.TaskExecuteStrategyImplTest.test
> Serialize(TaskExecuteStrategyImplTest.java:29)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:39)
> >         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at junit.framework.TestCase.runTest(TestCase.java:164)
> >         at
> org.seasar.framework.unit.S2FrameworkTestCase.doRunTest(S2FrameworkTes
> tCase.java:306)
> >         at
> org.seasar.extension.unit.S2TestCase.doRunTest(S2TestCase.java:92)
> >         at
> org.seasar.framework.unit.S2FrameworkTestCase.runBare(S2FrameworkTestC
> ase.java:189)
> >         at junit.framework.TestResult$1.protect(TestResult.java:106)
> >         at
> junit.framework.TestResult.runProtected(TestResult.java:124)
> >         at junit.framework.TestResult.run(TestResult.java:109)
> >         at junit.framework.TestCase.run(TestCase.java:120)
> >         at junit.framework.TestSuite.runTest(TestSuite.java:230)
> >         at junit.framework.TestSuite.run(TestSuite.java:225)
> >         at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(J
> Unit3TestReference.java:128)
> >         at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.
> java:38)
> >         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remote
> TestRunner.java:460)
> >         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remote
> TestRunner.java:673)
> >         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestR
> unner.java:386)
> >         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTest
> Runner.java:196)
> >
> >
> > _______________________________________________
> > Seasar-user mailing list
> > [E-MAIL ADDRESS DELETED]
> > https://ml.seasar.org/mailman/listinfo/seasar-user
> >
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user


Seasar-user メーリングリストの案内