Re: New to iBatis facing problem to get started

2010-01-04 Thread vishalj
me; >> >>} >> >>public void setName(String name) { >> >>this.name = name; >> >> } >> >> >> >> } >> >> >> >> Main method >> >> String resource = &q

Re: New to iBatis facing problem to get started

2010-01-04 Thread vishalj
me; >> >>} >> >>public void setName(String name) { >> >>this.name = name; >> >> } >> >> >> >> } >> >> >> >> Main method >> >> String resource = &q

Re: New to iBatis facing problem to get started

2009-12-31 Thread Clinton Begin
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

Re: New to iBatis facing problem to get started

2009-12-30 Thread Guy Rouillier
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

Re: New to iBatis facing problem to get started

2009-12-30 Thread Clinton Begin
od > >> String resource = "com/pg/ibatis/config/Configuration.xml"; > >>Reader reader = Resources.getResourceAsReader(resource); > >> SqlSessionFactory factory = new > SqlSessionFactoryBuilder() > >>

Re: New to iBatis facing problem to get started

2009-12-30 Thread vishalj
ionFactory factory = new SqlSessionFactoryBuilder() >>.build(reader); >>SqlSession session = factory.openSession(); >>try { >> UserProfileMapper mapper = >> session.getMapper(UserP

Re: New to iBatis facing problem to get started

2009-12-29 Thread Clinton Begin
UserProfileMapper mapper = > session.getMapper(UserProfileMapper.class); >UserProfile profile = mapper.selectUserProfile(1); >System.out.println("PROFILE " + profile); > System.out.println(profil

New to iBatis facing problem to get started

2009-12-29 Thread vishalj
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