Hi Larry
i've read your book "iBATIS in action", great book for a great tool!
No. This is the inner class's source code that i've extracted from Prova and
put on its own java file.
public class FlagNormalita {
// Flag di normalità da controllare
private String flag = null;
// Operazione da eseguire per questo flag
private OpFlag flagOp = OpFlag.NESSUNA;
// Codice esito codificato da utilizzare (la tabella è quella abbinata
alla
prova).
private String codEsito = null;
/**
* @return Flag di normalità da controllare
*/
public String getFlag() {
if (flag == null) {
flag = new String();
}
return flag;
}
/**
* @param flag Flag di normalità da controllare
*/
public void setFlag(String flag) {
this.flag = flag;
}
/**
* @return Operazione da eseguire per questo flag
*/
public OpFlag getFlagOp() {
return flagOp;
}
/**
* @param flagOp Operazione da eseguire per questo flag
*/
public void setFlagOp(OpFlag flagOp) {
this.flagOp = flagOp;
}
/**
* @return Codice esito codificato da utilizzare (la tabella è quella
abbinata alla prova).
*/
public String getCodEsito() {
if (codEsito == null) {
codEsito = new String();
}
return codEsito;
}
/**
* @param codEsito Codice esito codificato da utilizzare (la tabella è
quella abbinata alla prova).
*/
public void setCodEsito(String codEsito) {
this.codEsito = codEsito;
}
}
Larry Meadors wrote:
>
> Is the inner class static?
>
> Larry
>
>
> On Tue, Jul 8, 2008 at 7:08 AM, CarloV
> <[EMAIL PROTECTED]> wrote:
>>
>> I tried to use an inner class in a resultMap.
>>
>> If i use the full name like
>> it.scscomputers.storpa.model.Prova.AzioneEsito
>> i've got a ClassNotFoundExcemption.
>>
>> Then as reported here
>> http://www.mail-archive.com/[email protected]/msg02492.html
>> i used the '$' instead of '.'.
>>
>> But i've got another exception: JavaBeansDataExchange could not
>> instantiate
>> result class.
>>
>> What's going wrong?
>>
>> Making AzioneEsito (the inner class) a normal class iBATIS work well.
>>
>> Thanks for your attention
>> Carlo
>> --
>> View this message in context:
>> http://www.nabble.com/inner-class-tp18338841p18338841.html
>> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/inner-class-tp18338841p18340556.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.