You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by stefcl <st...@gmail.com> on 2009/12/26 12:49:18 UTC

How about a Netbeans integration plugin?

Hello,

I have been using Ibatis v3 for a few weeks now. Although IBatis XML syntax
is straightforward and easy to understand, I still spend a lot of time
editing my mapping files, creating POJOs, looking for property names,
ensuring that ids aren't mistyped... 

I'm using the netbeans IDE, I have seen some nice examples of third party
products integration. Having had a quick look at the netbeans APIs, I think
it should not be too complicated to create an Ibatis integration plugin that
would provide features such as :

- navigating to myResultMap declaration when CTRL-clicking on
resultMap="myResultMap" in a select block.
- opening corresponding .java files using the same hyperlinking strategy as
above.
- enabling autocompletion for various ids (resultMap, sql) or java class
names.

Those would be part of a first try, I can also think of more advanced
features (exact feasibility still to be evaluated) :


- Pojo generation wizard based on a resultMap declaration.
- "Find Usages" menu for resultMap and Sql chunks.
- autocompletion for POJOs property names.
- Java Interface generation wizard for mapped queries (v3). 
- Resultmap generation wizard -> given a SELECT, it executes it using
netbeans database toolset and suggest a basic resultmap and/or POJO.
- CRUD generation, like in abator.
- Validation tools, code snippets, visual explorer...

It sure would require days and days of work, so I would like to ask ibatis
users' opinion. For now I'm just emitting the idea, but if there is a real
interest, I think I'll take the step further.

Kind regards
-- 
View this message in context: http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26926675.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


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


Re: How about a Netbeans integration plugin?

Posted by Nathan Maves <na...@gmail.com>.
Being an avid NB user as well I would love to see this.  I have even
though about writing it myself once or twice.  Not sure how much free
time I have right now but I would do my best to help.

Nathan

On Sat, Dec 26, 2009 at 4:49 AM, stefcl <st...@gmail.com> wrote:
>
> Hello,
>
> I have been using Ibatis v3 for a few weeks now. Although IBatis XML syntax
> is straightforward and easy to understand, I still spend a lot of time
> editing my mapping files, creating POJOs, looking for property names,
> ensuring that ids aren't mistyped...
>
> I'm using the netbeans IDE, I have seen some nice examples of third party
> products integration. Having had a quick look at the netbeans APIs, I think
> it should not be too complicated to create an Ibatis integration plugin that
> would provide features such as :
>
> - navigating to myResultMap declaration when CTRL-clicking on
> resultMap="myResultMap" in a select block.
> - opening corresponding .java files using the same hyperlinking strategy as
> above.
> - enabling autocompletion for various ids (resultMap, sql) or java class
> names.
>
> Those would be part of a first try, I can also think of more advanced
> features (exact feasibility still to be evaluated) :
>
>
> - Pojo generation wizard based on a resultMap declaration.
> - "Find Usages" menu for resultMap and Sql chunks.
> - autocompletion for POJOs property names.
> - Java Interface generation wizard for mapped queries (v3).
> - Resultmap generation wizard -> given a SELECT, it executes it using
> netbeans database toolset and suggest a basic resultmap and/or POJO.
> - CRUD generation, like in abator.
> - Validation tools, code snippets, visual explorer...
>
> It sure would require days and days of work, so I would like to ask ibatis
> users' opinion. For now I'm just emitting the idea, but if there is a real
> interest, I think I'll take the step further.
>
> Kind regards
> --
> View this message in context: http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26926675.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>

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


Re: How about a Netbeans integration plugin?

Posted by stefcl <st...@gmail.com>.


nmaves wrote:
> 
> So I have the first version of the Netbeans Plugin Module done.  Simple
> yet
> functional.  I have yet to put it into svn but let me know if you want to
> try it out. Or if there are other features that you may want.
> 
> Configuration features
> 
>    - Hyperlink to mapper files
>    - Hyperlink typeAlias to java source
> 
> Mapper features
> 
>    - Hyperlink select resultMap attribute to resultMap definition when
>    resultMap is local
>    - Hyperlink resultMap type attribute to java source when value is a fqn
> 
> Yet to be implemented
> 
>    - Auto complete of resultMap attribute
>    - Auto complete of type attribute
> 
> 
> Issues
> 
>    - How to link a mapper type to a typeAlias
> 

Sorry for the late answer, not sure what happened but I stopped receiving
email notifications about this topic. 
I have implemented basic versions of the hyperlink features on my side,
however the netbeans API is a little more complex than I thought. There's
also a lot of outdated documentation on the web (to make things more
complicated).

Nathan, I'd be happy to provide you some help. I might be a bit busy
starting by tomorrow but I don't think working on two different versions of
a netbeans plugin would make sense anyway. So if you don't mind, we could
focus our effort on the same project.

Stephane
-- 
View this message in context: http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p27000917.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


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


Re: How about a Netbeans integration plugin?

Posted by Nathan Maves <na...@gmail.com>.
sounds good to me

On Sat, Jan 2, 2010 at 9:19 PM, Clinton Begin <cl...@gmail.com>wrote:

> What do you guys thing of creating a google code project for iBATIS
> plugins?  This would avoid the need to get everyone signing CLAs and would
> give you more freedom over your project.  At the same time, it would keep
> the iBATIS codebase free of 3rd party dependencies.
>
> We could organize it into categories like:  IDE Support, Cache Support,
> DataSource Support, Plugins, Utilities  etc...
>
> I think it would be simpler and easier to manage these outside of the
> Apache process.  Of course, all would still have to be Apache 2.0 licensed.
>
>
> Clinton
>
> On Sat, Jan 2, 2010 at 2:47 PM, Nathan Maves <na...@gmail.com>wrote:
>
>> So I have the first version of the Netbeans Plugin Module done.  Simple
>> yet functional.  I have yet to put it into svn but let me know if you want
>> to try it out. Or if there are other features that you may want.
>>
>> Configuration features
>>
>>    - Hyperlink to mapper files
>>    - Hyperlink typeAlias to java source
>>
>> Mapper features
>>
>>    - Hyperlink select resultMap attribute to resultMap definition when
>>    resultMap is local
>>    - Hyperlink resultMap type attribute to java source when value is a
>>    fqn
>>
>> Yet to be implemented
>>
>>    - Auto complete of resultMap attribute
>>    - Auto complete of type attribute
>>
>>
>> Issues
>>
>>    - How to link a mapper type to a typeAlias
>>
>>
>> On Sun, Dec 27, 2009 at 11:57 AM, Nathan Maves <na...@gmail.com>
>> wrote:
>> > just a heads up I started working on a plugin this morning.  I would
>> > love some help so if you are interested let me know and we can
>> > collaborate.
>> >
>> > Nathan
>> >
>> > On Sun, Dec 27, 2009 at 5:44 AM, Kai Grabfelder <
>> nospam@kaigrabfelder.de> wrote:
>> >> Hi there,
>> >>
>> >> some while ago I directed a student projects leading to the creation of
>> an eclipse plugin for iBATIS
>> >> (eclibatis: http://sourceforge.net/projects/eclibatis/) which does the
>> following things:
>> >>
>> >> - navigating to myResultMap declaration when CTRL-clicking on
>> >> resultMap="myResultMap" in a select block.
>> >> - opening corresponding .java files using the same hyperlinking
>> strategy as
>> >> above.
>> >> - enabling autocompletion for various ids (resultMap, sql) or java
>> class
>> >> names.
>> >>
>> >>
>> >> Unfortunately sourceforge remove the wiki functionality so all the
>> documentation (that was within the wiki) is
>> >> gone. I'm also not sure if it still works with latest spring IDE &
>> Eclipse 3.5 versions.
>> >>
>> >> As always time constraints hinder me from releasing an updated version
>> ;-(
>> >>
>> >> Regards
>> >>
>> >> Kai
>> >>
>> >> --- Original Nachricht ---
>> >> Absender: stefcl
>> >> Datum: 27.12.2009 11:49
>> >>>
>> >>>
>> >>> Guy Rouillier-2 wrote:
>> >>>> I don't use NetBeans.  Do Eclipse plugins work there?  If so, check
>> out
>> >>>> Ibator from the IBATIS website.  It will handle at least some of the
>> >>>> tasks you've identified (generates POJOs, result maps, etc.)
>> >>>>
>> >>>>
>> >>> Quoted from:
>> >>>
>> http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26932342.html
>> >>>
>> >>>
>> >>> I have already had a look at ibator, I would use it to get started on
>> a new
>> >>> project with IBatis, for generating the typical CRUD stuff for the
>> most
>> >>> basic DB tables. However, in the kind of project I'm working on, 1:1
>> >>> mappings between java objects and relational table aren't always
>> suitable,
>> >>> and even so, there's a lot more I need to do with my database.
>> >>>
>> >>> One way or another, I'm really not sure you can escape editing your
>> XML
>> >>> files by hand at some point. That's the main reason why I think an IDE
>> >>> module adding some ibatis specific support to the existing XML editor
>> would
>> >>> be enjoyable.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
>> >> For additional commands, e-mail: user-java-help@ibatis.apache.org
>> >>
>> >>
>> >
>>
>>
>

Re: How about a Netbeans integration plugin?

Posted by Larry Meadors <la...@gmail.com>.
I think that is a great idea - I think google's got better
infrastructure than Apache. :-/

Larry


On Sat, Jan 2, 2010 at 9:19 PM, Clinton Begin <cl...@gmail.com> wrote:
> What do you guys thing of creating a google code project for iBATIS
> plugins?  This would avoid the need to get everyone signing CLAs and would
> give you more freedom over your project.  At the same time, it would keep
> the iBATIS codebase free of 3rd party dependencies.
>
> We could organize it into categories like:  IDE Support, Cache Support,
> DataSource Support, Plugins, Utilities  etc...
>
> I think it would be simpler and easier to manage these outside of the Apache
> process.  Of course, all would still have to be Apache 2.0 licensed.
>
> Clinton
>
> On Sat, Jan 2, 2010 at 2:47 PM, Nathan Maves <na...@gmail.com> wrote:
>>
>> So I have the first version of the Netbeans Plugin Module done.  Simple
>> yet functional.  I have yet to put it into svn but let me know if you want
>> to try it out. Or if there are other features that you may want.
>>
>> Configuration features
>>
>> Hyperlink to mapper files
>> Hyperlink typeAlias to java source
>>
>> Mapper features
>>
>> Hyperlink select resultMap attribute to resultMap definition when
>> resultMap is local
>> Hyperlink resultMap type attribute to java source when value is a fqn
>>
>> Yet to be implemented
>>
>> Auto complete of resultMap attribute
>> Auto complete of type attribute
>>
>> Issues
>>
>> How to link a mapper type to a typeAlias
>>
>> On Sun, Dec 27, 2009 at 11:57 AM, Nathan Maves <na...@gmail.com>
>> wrote:
>> > just a heads up I started working on a plugin this morning.  I would
>> > love some help so if you are interested let me know and we can
>> > collaborate.
>> >
>> > Nathan
>> >
>> > On Sun, Dec 27, 2009 at 5:44 AM, Kai Grabfelder
>> > <no...@kaigrabfelder.de> wrote:
>> >> Hi there,
>> >>
>> >> some while ago I directed a student projects leading to the creation of
>> >> an eclipse plugin for iBATIS
>> >> (eclibatis: http://sourceforge.net/projects/eclibatis/) which does the
>> >> following things:
>> >>
>> >> - navigating to myResultMap declaration when CTRL-clicking on
>> >> resultMap="myResultMap" in a select block.
>> >> - opening corresponding .java files using the same hyperlinking
>> >> strategy as
>> >> above.
>> >> - enabling autocompletion for various ids (resultMap, sql) or java
>> >> class
>> >> names.
>> >>
>> >>
>> >> Unfortunately sourceforge remove the wiki functionality so all the
>> >> documentation (that was within the wiki) is
>> >> gone. I'm also not sure if it still works with latest spring IDE &
>> >> Eclipse 3.5 versions.
>> >>
>> >> As always time constraints hinder me from releasing an updated version
>> >> ;-(
>> >>
>> >> Regards
>> >>
>> >> Kai
>> >>
>> >> --- Original Nachricht ---
>> >> Absender: stefcl
>> >> Datum: 27.12.2009 11:49
>> >>>
>> >>>
>> >>> Guy Rouillier-2 wrote:
>> >>>> I don't use NetBeans.  Do Eclipse plugins work there?  If so, check
>> >>>> out
>> >>>> Ibator from the IBATIS website.  It will handle at least some of the
>> >>>> tasks you've identified (generates POJOs, result maps, etc.)
>> >>>>
>> >>>>
>> >>> Quoted from:
>> >>>
>> >>> http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26932342.html
>> >>>
>> >>>
>> >>> I have already had a look at ibator, I would use it to get started on
>> >>> a new
>> >>> project with IBatis, for generating the typical CRUD stuff for the
>> >>> most
>> >>> basic DB tables. However, in the kind of project I'm working on, 1:1
>> >>> mappings between java objects and relational table aren't always
>> >>> suitable,
>> >>> and even so, there's a lot more I need to do with my database.
>> >>>
>> >>> One way or another, I'm really not sure you can escape editing your
>> >>> XML
>> >>> files by hand at some point. That's the main reason why I think an IDE
>> >>> module adding some ibatis specific support to the existing XML editor
>> >>> would
>> >>> be enjoyable.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
>> >> For additional commands, e-mail: user-java-help@ibatis.apache.org
>> >>
>> >>
>> >
>>
>
>

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


Re: How about a Netbeans integration plugin?

Posted by Clinton Begin <cl...@gmail.com>.
What do you guys thing of creating a google code project for iBATIS
plugins?  This would avoid the need to get everyone signing CLAs and would
give you more freedom over your project.  At the same time, it would keep
the iBATIS codebase free of 3rd party dependencies.

We could organize it into categories like:  IDE Support, Cache Support,
DataSource Support, Plugins, Utilities  etc...

I think it would be simpler and easier to manage these outside of the Apache
process.  Of course, all would still have to be Apache 2.0 licensed.

Clinton

On Sat, Jan 2, 2010 at 2:47 PM, Nathan Maves <na...@gmail.com> wrote:

> So I have the first version of the Netbeans Plugin Module done.  Simple yet
> functional.  I have yet to put it into svn but let me know if you want to
> try it out. Or if there are other features that you may want.
>
> Configuration features
>
>    - Hyperlink to mapper files
>    - Hyperlink typeAlias to java source
>
> Mapper features
>
>    - Hyperlink select resultMap attribute to resultMap definition when
>    resultMap is local
>    - Hyperlink resultMap type attribute to java source when value is a fqn
>
> Yet to be implemented
>
>    - Auto complete of resultMap attribute
>    - Auto complete of type attribute
>
>
> Issues
>
>    - How to link a mapper type to a typeAlias
>
>
> On Sun, Dec 27, 2009 at 11:57 AM, Nathan Maves <na...@gmail.com>
> wrote:
> > just a heads up I started working on a plugin this morning.  I would
> > love some help so if you are interested let me know and we can
> > collaborate.
> >
> > Nathan
> >
> > On Sun, Dec 27, 2009 at 5:44 AM, Kai Grabfelder <no...@kaigrabfelder.de>
> wrote:
> >> Hi there,
> >>
> >> some while ago I directed a student projects leading to the creation of
> an eclipse plugin for iBATIS
> >> (eclibatis: http://sourceforge.net/projects/eclibatis/) which does the
> following things:
> >>
> >> - navigating to myResultMap declaration when CTRL-clicking on
> >> resultMap="myResultMap" in a select block.
> >> - opening corresponding .java files using the same hyperlinking strategy
> as
> >> above.
> >> - enabling autocompletion for various ids (resultMap, sql) or java class
> >> names.
> >>
> >>
> >> Unfortunately sourceforge remove the wiki functionality so all the
> documentation (that was within the wiki) is
> >> gone. I'm also not sure if it still works with latest spring IDE &
> Eclipse 3.5 versions.
> >>
> >> As always time constraints hinder me from releasing an updated version
> ;-(
> >>
> >> Regards
> >>
> >> Kai
> >>
> >> --- Original Nachricht ---
> >> Absender: stefcl
> >> Datum: 27.12.2009 11:49
> >>>
> >>>
> >>> Guy Rouillier-2 wrote:
> >>>> I don't use NetBeans.  Do Eclipse plugins work there?  If so, check
> out
> >>>> Ibator from the IBATIS website.  It will handle at least some of the
> >>>> tasks you've identified (generates POJOs, result maps, etc.)
> >>>>
> >>>>
> >>> Quoted from:
> >>>
> http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26932342.html
> >>>
> >>>
> >>> I have already had a look at ibator, I would use it to get started on a
> new
> >>> project with IBatis, for generating the typical CRUD stuff for the most
> >>> basic DB tables. However, in the kind of project I'm working on, 1:1
> >>> mappings between java objects and relational table aren't always
> suitable,
> >>> and even so, there's a lot more I need to do with my database.
> >>>
> >>> One way or another, I'm really not sure you can escape editing your XML
> >>> files by hand at some point. That's the main reason why I think an IDE
> >>> module adding some ibatis specific support to the existing XML editor
> would
> >>> be enjoyable.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> >> For additional commands, e-mail: user-java-help@ibatis.apache.org
> >>
> >>
> >
>
>

Re: How about a Netbeans integration plugin?

Posted by Nathan Maves <na...@gmail.com>.
So I have the first version of the Netbeans Plugin Module done.  Simple yet
functional.  I have yet to put it into svn but let me know if you want to
try it out. Or if there are other features that you may want.

Configuration features

   - Hyperlink to mapper files
   - Hyperlink typeAlias to java source

Mapper features

   - Hyperlink select resultMap attribute to resultMap definition when
   resultMap is local
   - Hyperlink resultMap type attribute to java source when value is a fqn

Yet to be implemented

   - Auto complete of resultMap attribute
   - Auto complete of type attribute


Issues

   - How to link a mapper type to a typeAlias


On Sun, Dec 27, 2009 at 11:57 AM, Nathan Maves <na...@gmail.com>
wrote:
> just a heads up I started working on a plugin this morning.  I would
> love some help so if you are interested let me know and we can
> collaborate.
>
> Nathan
>
> On Sun, Dec 27, 2009 at 5:44 AM, Kai Grabfelder <no...@kaigrabfelder.de>
wrote:
>> Hi there,
>>
>> some while ago I directed a student projects leading to the creation of
an eclipse plugin for iBATIS
>> (eclibatis: http://sourceforge.net/projects/eclibatis/) which does the
following things:
>>
>> - navigating to myResultMap declaration when CTRL-clicking on
>> resultMap="myResultMap" in a select block.
>> - opening corresponding .java files using the same hyperlinking strategy
as
>> above.
>> - enabling autocompletion for various ids (resultMap, sql) or java class
>> names.
>>
>>
>> Unfortunately sourceforge remove the wiki functionality so all the
documentation (that was within the wiki) is
>> gone. I'm also not sure if it still works with latest spring IDE &
Eclipse 3.5 versions.
>>
>> As always time constraints hinder me from releasing an updated version
;-(
>>
>> Regards
>>
>> Kai
>>
>> --- Original Nachricht ---
>> Absender: stefcl
>> Datum: 27.12.2009 11:49
>>>
>>>
>>> Guy Rouillier-2 wrote:
>>>> I don't use NetBeans.  Do Eclipse plugins work there?  If so, check out
>>>> Ibator from the IBATIS website.  It will handle at least some of the
>>>> tasks you've identified (generates POJOs, result maps, etc.)
>>>>
>>>>
>>> Quoted from:
>>>
http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26932342.html
>>>
>>>
>>> I have already had a look at ibator, I would use it to get started on a
new
>>> project with IBatis, for generating the typical CRUD stuff for the most
>>> basic DB tables. However, in the kind of project I'm working on, 1:1
>>> mappings between java objects and relational table aren't always
suitable,
>>> and even so, there's a lot more I need to do with my database.
>>>
>>> One way or another, I'm really not sure you can escape editing your XML
>>> files by hand at some point. That's the main reason why I think an IDE
>>> module adding some ibatis specific support to the existing XML editor
would
>>> be enjoyable.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
>> For additional commands, e-mail: user-java-help@ibatis.apache.org
>>
>>
>

Re: How about a Netbeans integration plugin?

Posted by Nathan Maves <na...@gmail.com>.
just a heads up I started working on a plugin this morning.  I would
love some help so if you are interested let me know and we can
collaborate.

Nathan

On Sun, Dec 27, 2009 at 5:44 AM, Kai Grabfelder <no...@kaigrabfelder.de> wrote:
> Hi there,
>
> some while ago I directed a student projects leading to the creation of an eclipse plugin for iBATIS
> (eclibatis: http://sourceforge.net/projects/eclibatis/) which does the following things:
>
> - navigating to myResultMap declaration when CTRL-clicking on
> resultMap="myResultMap" in a select block.
> - opening corresponding .java files using the same hyperlinking strategy as
> above.
> - enabling autocompletion for various ids (resultMap, sql) or java class
> names.
>
>
> Unfortunately sourceforge remove the wiki functionality so all the documentation (that was within the wiki) is
> gone. I'm also not sure if it still works with latest spring IDE & Eclipse 3.5 versions.
>
> As always time constraints hinder me from releasing an updated version ;-(
>
> Regards
>
> Kai
>
> --- Original Nachricht ---
> Absender: stefcl
> Datum: 27.12.2009 11:49
>>
>>
>> Guy Rouillier-2 wrote:
>>> I don't use NetBeans.  Do Eclipse plugins work there?  If so, check out
>>> Ibator from the IBATIS website.  It will handle at least some of the
>>> tasks you've identified (generates POJOs, result maps, etc.)
>>>
>>>
>> Quoted from:
>> http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26932342.html
>>
>>
>> I have already had a look at ibator, I would use it to get started on a new
>> project with IBatis, for generating the typical CRUD stuff for the most
>> basic DB tables. However, in the kind of project I'm working on, 1:1
>> mappings between java objects and relational table aren't always suitable,
>> and even so, there's a lot more I need to do with my database.
>>
>> One way or another, I'm really not sure you can escape editing your XML
>> files by hand at some point. That's the main reason why I think an IDE
>> module adding some ibatis specific support to the existing XML editor would
>> be enjoyable.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>

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


Re: How about a Netbeans integration plugin?

Posted by Kai Grabfelder <no...@kaigrabfelder.de>.
Hi there,

some while ago I directed a student projects leading to the creation of an eclipse plugin for iBATIS
(eclibatis: http://sourceforge.net/projects/eclibatis/) which does the following things:

- navigating to myResultMap declaration when CTRL-clicking on
resultMap="myResultMap" in a select block.
- opening corresponding .java files using the same hyperlinking strategy as
above.
- enabling autocompletion for various ids (resultMap, sql) or java class
names.


Unfortunately sourceforge remove the wiki functionality so all the documentation (that was within the wiki) is
gone. I'm also not sure if it still works with latest spring IDE & Eclipse 3.5 versions.

As always time constraints hinder me from releasing an updated version ;-(

Regards

Kai

--- Original Nachricht ---
Absender: stefcl
Datum: 27.12.2009 11:49
> 
> 
> Guy Rouillier-2 wrote:
>> I don't use NetBeans.  Do Eclipse plugins work there?  If so, check out
>> Ibator from the IBATIS website.  It will handle at least some of the
>> tasks you've identified (generates POJOs, result maps, etc.)
>> 
>> 
> Quoted from: 
> http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26932342.html
> 
> 
> I have already had a look at ibator, I would use it to get started on a new
> project with IBatis, for generating the typical CRUD stuff for the most
> basic DB tables. However, in the kind of project I'm working on, 1:1
> mappings between java objects and relational table aren't always suitable,
> and even so, there's a lot more I need to do with my database.
> 
> One way or another, I'm really not sure you can escape editing your XML
> files by hand at some point. That's the main reason why I think an IDE
> module adding some ibatis specific support to the existing XML editor would
> be enjoyable.


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


Re: How about a Netbeans integration plugin?

Posted by stefcl <st...@gmail.com>.

Guy Rouillier-2 wrote:
> I don't use NetBeans.  Do Eclipse plugins work there?  If so, check out
> Ibator from the IBATIS website.  It will handle at least some of the
> tasks you've identified (generates POJOs, result maps, etc.)
> 
> 
Quoted from: 
http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26932342.html


I have already had a look at ibator, I would use it to get started on a new
project with IBatis, for generating the typical CRUD stuff for the most
basic DB tables. However, in the kind of project I'm working on, 1:1
mappings between java objects and relational table aren't always suitable,
and even so, there's a lot more I need to do with my database.

One way or another, I'm really not sure you can escape editing your XML
files by hand at some point. That's the main reason why I think an IDE
module adding some ibatis specific support to the existing XML editor would
be enjoyable.
-- 
View this message in context: http://old.nabble.com/How-about-a-Netbeans-integration-plugin--tp26926675p26933207.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


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


Re: How about a Netbeans integration plugin?

Posted by Guy Rouillier <gu...@burntmail.com>.
stefcl wrote:
> Hello,
> 
> I have been using Ibatis v3 for a few weeks now. Although IBatis XML syntax
> is straightforward and easy to understand, I still spend a lot of time
> editing my mapping files, creating POJOs, looking for property names,
> ensuring that ids aren't mistyped... 

I don't use NetBeans.  Do Eclipse plugins work there?  If so, check out
Ibator from the IBATIS website.  It will handle at least some of the
tasks you've identified (generates POJOs, result maps, etc.)

> 
> I'm using the netbeans IDE, I have seen some nice examples of third party
> products integration. Having had a quick look at the netbeans APIs, I think
> it should not be too complicated to create an Ibatis integration plugin that
> would provide features such as :
> 
> - navigating to myResultMap declaration when CTRL-clicking on
> resultMap="myResultMap" in a select block.
> - opening corresponding .java files using the same hyperlinking strategy as
> above.
> - enabling autocompletion for various ids (resultMap, sql) or java class
> names.
> 
> Those would be part of a first try, I can also think of more advanced
> features (exact feasibility still to be evaluated) :
> 
> 
> - Pojo generation wizard based on a resultMap declaration.
> - "Find Usages" menu for resultMap and Sql chunks.
> - autocompletion for POJOs property names.
> - Java Interface generation wizard for mapped queries (v3). 
> - Resultmap generation wizard -> given a SELECT, it executes it using
> netbeans database toolset and suggest a basic resultmap and/or POJO.
> - CRUD generation, like in abator.
> - Validation tools, code snippets, visual explorer...
> 
> It sure would require days and days of work, so I would like to ask ibatis
> users' opinion. For now I'm just emitting the idea, but if there is a real
> interest, I think I'll take the step further.
> 
> Kind regards


-- 
--
Guy Rouillier

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