me;
>> >>}
>> >>public void setName(String name) {
>> >>this.name = name;
>> >> }
>> >>
>> >> }
>> >>
>> >> Main method
>> >> String resource = &q
me;
>> >>}
>> >>public void setName(String name) {
>> >>this.name = name;
>> >> }
>> >>
>> >> }
>> >>
>> >> Main method
>> >> String resource = &q
You can sort of tell given his output:
*PROFILE null*
Exception in thread "main" java.lang.NullPointerException
at Main.main(Main.java:23)
So given that:
21....
22.System.out.println(*"PROFILE " + profile*);
23.System.out.println(profile.getName());
24....
We
On 12/30/2009 12:28 AM, vishalj wrote:
Hi,
I am using iBatis for the first time ,but no success yet.This is how my
setup looks like
...
String resource = "com/pg/ibatis/config/Configuration.xml";
Reader reader = Resources.getResourceAsReader(resource);
SqlSessio
od
> >> String resource = "com/pg/ibatis/config/Configuration.xml";
> >>Reader reader = Resources.getResourceAsReader(resource);
> >> SqlSessionFactory factory = new
> SqlSessionFactoryBuilder()
> >>
ionFactory factory = new SqlSessionFactoryBuilder()
>>.build(reader);
>>SqlSession session = factory.openSession();
>>try {
>> UserProfileMapper mapper =
>> session.getMapper(UserP
UserProfileMapper mapper =
> session.getMapper(UserProfileMapper.class);
>UserProfile profile = mapper.selectUserProfile(1);
>System.out.println("PROFILE " + profile);
> System.out.println(profil
this message in context:
http://old.nabble.com/New-to-iBatis-facing-problem-to-get-started-tp26964254p26964254.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-java-unsubscr...@ib