Re: iBatis 3.0 minimal complete example

2010-02-11 Thread Simone Tripodi
Great,
I'll use your sample as the foundation of the JPetStore iBaGuice version
Thanks a lot, very appreciated,
Simo

http://people.apache.org/~simonetripodi/



On Thu, Feb 11, 2010 at 2:21 AM, Clinton Begin clinton.be...@gmail.com wrote:
 Anyone and everyone is welcome (and encouraged) to create a JPetStore
 implementation with iBATIS using whichever framework they like.

 Cheers,
 Clinton

 On Wed, Feb 10, 2010 at 3:10 PM, Ed Stafford
 walter.staff...@carbonsixty.co.uk wrote:

 Hi gents,

 I have a fair bit of time on my hands if you'd like some help. I'd second
 using Stripes and maybe Spring if only because the authn/authz is pretty
 nice to use.

 Cheers,
 -Ed

 On 10 February 2010 21:54, Nathan Maves nathan.ma...@gmail.com wrote:

 how about we leave out the whole J2EE stack and anything that goes with
 it
 come on rick people want to see a nice clean example of a full stack.
  from the front end (stripes gets my vote) to IB3 on the back end as well as
 anything in between.  we have covered this topic before and would love to
 have a few jPetStores out there.  I would love for someone to use flex for
 the front end on one as well.
 nathan
 On Feb 10, 2010, at 2:21 PM, Rick R wrote:

 On Tue, Feb 2, 2010 at 9:27 AM, Clinton Begin clinton.be...@gmail.com
 wrote:

 I agree, that it's long overdue.  Perhaps it's time for Jpetstore 6.


 And without leveraging Guice or Spring :)

 Nathan Maves
 nathan.ma...@gmail.com






-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org



Re: iBatis 3.0 minimal complete example

2010-02-11 Thread Guy Rouillier

On 2/10/2010 11:40 PM, Rick R wrote:

certainly not very.) Feel free to let me know off-list how DI has
'really' helped - not some mythical Spinal Tap Well this one goes to
11 argument.


DI has made code simpler in the EJB3 world.  With EJB2, to obtain a JNDI 
datasource, you had to do lookups like this:


connection = ((DataSource) (new 
InitialContext()).lookup(java:comp/env/jdbc/troubleticketDB)).getConnection();


With EJB3, you simply annotate like this:

@Resource(type = DataSource.class, mappedName = java:troubleticketDB)
   private DataSource  ds;

   connection = ds.getConnection();

Much more logical to work with.  And because you are no longer doing 
lookups, you don't have to catch NamingExceptions throughout your code.


Syntactic sugar perhaps, but sweet.

--
Guy Rouillier

-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org



Re: iBatis 3.0 minimal complete example

2010-02-10 Thread Rick R
On Tue, Feb 2, 2010 at 9:27 AM, Clinton Begin clinton.be...@gmail.comwrote:

 I agree, that it's long overdue.  Perhaps it's time for Jpetstore 6.



And without leveraging Guice or Spring :)


Re: iBatis 3.0 minimal complete example

2010-02-10 Thread Larry Meadors
On Wed, Feb 10, 2010 at 2:21 PM, Rick R ric...@gmail.com wrote:
 And without leveraging Guice or Spring :)

Rick, you pansy. ;-)

-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org



Re: iBatis 3.0 minimal complete example

2010-02-10 Thread Nathan Maves
how about we leave out the whole J2EE stack and anything that goes with it

come on rick people want to see a nice clean example of a full stack.  from the 
front end (stripes gets my vote) to IB3 on the back end as well as anything in 
between.  we have covered this topic before and would love to have a few 
jPetStores out there.  I would love for someone to use flex for the front end 
on one as well.

nathan
On Feb 10, 2010, at 2:21 PM, Rick R wrote:

 
 On Tue, Feb 2, 2010 at 9:27 AM, Clinton Begin clinton.be...@gmail.com wrote:
 I agree, that it's long overdue.  Perhaps it's time for Jpetstore 6.
  
 
 And without leveraging Guice or Spring :)

Nathan Maves
nathan.ma...@gmail.com





Re: iBatis 3.0 minimal complete example

2010-02-10 Thread Ed Stafford
Hi gents,

I have a fair bit of time on my hands if you'd like some help. I'd second
using Stripes and maybe Spring if only because the authn/authz is pretty
nice to use.

Cheers,
-Ed

On 10 February 2010 21:54, Nathan Maves nathan.ma...@gmail.com wrote:

 how about we leave out the whole J2EE stack and anything that goes with
 it

 come on rick people want to see a nice clean example of a full stack.  from
 the front end (stripes gets my vote) to IB3 on the back end as well as
 anything in between.  we have covered this topic before and would love to
 have a few jPetStores out there.  I would love for someone to use flex for
 the front end on one as well.

 nathan
 On Feb 10, 2010, at 2:21 PM, Rick R wrote:


 On Tue, Feb 2, 2010 at 9:27 AM, Clinton Begin clinton.be...@gmail.comwrote:

 I agree, that it's long overdue.  Perhaps it's time for Jpetstore 6.



 And without leveraging Guice or Spring :)


 Nathan Maves
 nathan.ma...@gmail.com






Re: iBatis 3.0 minimal complete example

2010-02-10 Thread Clinton Begin
I'm going to implement JPetStore 6 using only iBATIS and byte[].

Clinton

On Wed, Feb 10, 2010 at 2:54 PM, Nathan Maves nathan.ma...@gmail.comwrote:

 how about we leave out the whole J2EE stack and anything that goes with
 it

 come on rick people want to see a nice clean example of a full stack.  from
 the front end (stripes gets my vote) to IB3 on the back end as well as
 anything in between.  we have covered this topic before and would love to
 have a few jPetStores out there.  I would love for someone to use flex for
 the front end on one as well.

 nathan
 On Feb 10, 2010, at 2:21 PM, Rick R wrote:


 On Tue, Feb 2, 2010 at 9:27 AM, Clinton Begin clinton.be...@gmail.comwrote:

 I agree, that it's long overdue.  Perhaps it's time for Jpetstore 6.



 And without leveraging Guice or Spring :)


  Nathan Maves
 nathan.ma...@gmail.com






Re: iBatis 3.0 minimal complete example

2010-02-10 Thread Clinton Begin
Anyone and everyone is welcome (and encouraged) to create a JPetStore
implementation with iBATIS using whichever framework they like.

Cheers,
Clinton

On Wed, Feb 10, 2010 at 3:10 PM, Ed Stafford 
walter.staff...@carbonsixty.co.uk wrote:

 Hi gents,

 I have a fair bit of time on my hands if you'd like some help. I'd second
 using Stripes and maybe Spring if only because the authn/authz is pretty
 nice to use.

 Cheers,
 -Ed


 On 10 February 2010 21:54, Nathan Maves nathan.ma...@gmail.com wrote:

 how about we leave out the whole J2EE stack and anything that goes with
 it

 come on rick people want to see a nice clean example of a full stack.
  from the front end (stripes gets my vote) to IB3 on the back end as well as
 anything in between.  we have covered this topic before and would love to
 have a few jPetStores out there.  I would love for someone to use flex for
 the front end on one as well.

 nathan
 On Feb 10, 2010, at 2:21 PM, Rick R wrote:


 On Tue, Feb 2, 2010 at 9:27 AM, Clinton Begin clinton.be...@gmail.comwrote:

 I agree, that it's long overdue.  Perhaps it's time for Jpetstore 6.



 And without leveraging Guice or Spring :)


  Nathan Maves
 nathan.ma...@gmail.com







Re: iBatis 3.0 minimal complete example

2010-02-10 Thread Zoran Avtarovski
To be honest I think the choice of front end matters little. The key aspect
is the data layer - IB3 and any dependency injection used.

I think one example using spring and another using Guice is more than
enough.

Z.
 
 how about we leave out the whole J2EE stack and anything that goes with it
 
 come on rick people want to see a nice clean example of a full stack.  from
 the front end (stripes gets my vote) to IB3 on the back end as well as
 anything in between.  we have covered this topic before and would love to have
 a few jPetStores out there.  I would love for someone to use flex for the
 front end on one as well.
 
 nathan
 On Feb 10, 2010, at 2:21 PM, Rick R wrote:
 
 
 On Tue, Feb 2, 2010 at 9:27 AM, Clinton Begin clinton.be...@gmail.com
 wrote:
 I agree, that it's long overdue.  Perhaps it's time for Jpetstore 6.
  
 
 And without leveraging Guice or Spring :)
 
 Nathan Maves
 nathan.ma...@gmail.com
 
 
 
 



Re: iBatis 3.0 minimal complete example

2010-02-10 Thread Rick R
On Wed, Feb 10, 2010 at 11:18 PM, Zoran Avtarovski
zo...@sparecreative.com wrote:

 To be honest I think the choice of front end matters little. The key aspect 
 is the data layer - IB3 and any dependency injection used.

 I think one example using spring and another using Guice is more than enough.

Yea, I don't see why the front end matters at all either, unless you
plan on demonstrating the handling the transaction demarcation in the
servlet layer of a webapp.I like to have all my ibatis stuff in its
own self contained jar since I never know what's going to end up using
it within the company so I handle all my transactions closer to the
fire.

[OT]:
Concerning the DI stuff, yea yea I know I'm in the minority that
thinks DI is way over rated. I like the aspect oriented parts of
things like Spring and Guice (transaction demarcation), but for pure
DI (injecting an implementation) I still don't get all the hype. Yes,
I know it's supposed to help with testing, which actually seems to be
the ONLY place people seem to ever mention its primary use, but even
there I guess I'm lazy since I don't care about sending in mock
objects to my java persistence methods. Not that I don't test, I just
suppose I don't test down to the level of mock objects. I want to be
sure my ibatis services work though - so for that just using a
different datasource in my properties file suffices. (The other area I
could see it helping a bit is if you need to compile different builds
with different implementations - you could have different xml files
that get used for doing your builds. How common is this though -
certainly not very.) Feel free to let me know off-list how DI has
'really' helped - not some mythical Spinal Tap Well this one goes to
11 argument.

-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org



Re: iBatis 3.0 minimal complete example

2010-02-10 Thread Larry Meadors
On Wed, Feb 10, 2010 at 6:21 PM, Clinton Begin clinton.be...@gmail.com wrote:
 Anyone and everyone is welcome (and encouraged) to create a JPetStore
 implementation with iBATIS using whichever framework they like.


Rails it is. ;-)

Larry

-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org



Re: iBatis 3.0 minimal complete example

2010-02-02 Thread Daryl Stultz
On Tue, Feb 2, 2010 at 12:13 AM, Tom Carchrae carch...@gmail.com wrote:



 Hi,

 I'm working my way through the 3.0 manual, and am new to iBatis.


Me, too!

 I wonder
 if anyone could be so kind as to post a complete working example.  There
 seems to be a lot of examples in 2.x land, but not so many using the
 current
 version.  So a simple java class, config file, and map file.


I am also interested in such an example, especially updating an object with
fields not yet loaded and persisting collections (inserting / deleting
members), one-to-many and many-to-many.

-- 
Daryl Stultz
_
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:da...@6degrees.com


Re: iBatis 3.0 minimal complete example

2010-02-02 Thread Clinton Begin
I agree, that it's long overdue.  Perhaps it's time for Jpetstore 6.

Clinton

On 2010-02-02, Daryl Stultz da...@6degrees.com wrote:
 On Tue, Feb 2, 2010 at 12:13 AM, Tom Carchrae carch...@gmail.com wrote:



 Hi,

 I'm working my way through the 3.0 manual, and am new to iBatis.


 Me, too!

  I wonder
 if anyone could be so kind as to post a complete working example.  There
 seems to be a lot of examples in 2.x land, but not so many using the
 current
 version.  So a simple java class, config file, and map file.


 I am also interested in such an example, especially updating an object with
 fields not yet loaded and persisting collections (inserting / deleting
 members), one-to-many and many-to-many.

 --
 Daryl Stultz
 _
 6 Degrees Software and Consulting, Inc.
 http://www.6degrees.com
 mailto:da...@6degrees.com


-- 
Sent from my mobile device

-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org



Re: iBatis 3.0 minimal complete example

2010-02-02 Thread Martin Ellis
On 2 February 2010 05:13, Tom Carchrae carch...@gmail.com wrote:
 I'm working my way through the 3.0 manual, and am new to iBatis.  I wonder
 if anyone could be so kind as to post a complete working example.  There
 seems to be a lot of examples in 2.x land, but not so many using the current
 version.  So a simple java class, config file, and map file.

 Alternatively, is the Blog example actually available anywhere?  I have seen
 the Petstore example, but it's not exactly simple/minimal.

Some of the tests are actually fairly good minimal examples.
Particularly in the org.apache.ibatis.submitted packages.

They've served me well.  You probably want to ignore the low-level
JDBC stuff to create the test database.  I'd suggest starting with the
count package.

Martin

-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org



iBatis 3.0 minimal complete example

2010-02-01 Thread Tom Carchrae


Hi,

I'm working my way through the 3.0 manual, and am new to iBatis.  I wonder
if anyone could be so kind as to post a complete working example.  There
seems to be a lot of examples in 2.x land, but not so many using the current
version.  So a simple java class, config file, and map file.  

Alternatively, is the Blog example actually available anywhere?  I have seen
the Petstore example, but it's not exactly simple/minimal. 

Thanks in advance,

Tom

-- 
View this message in context: 
http://old.nabble.com/iBatis-3.0-minimal-complete-example-tp27415635p27415635.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org