Suffix for DAOs

View: New views
6 Messages — Rating Filter:   Alert me  

Suffix for DAOs

by Benjamin-Klatt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi List,

 

is there an out-of-the-box way to generate the DAO objects with a suffix?

The only way I found so far is by extending an existing DAO generator.

 

Thanks for any feedback

 

br

benjamin

 


Re: Suffix for DAOs

by Jeff Butler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can do it with a plugin.  There's an example supplied with Ibator that shows how to rename the example classes - same concept.

Jeff Butler


On Sat, Jul 4, 2009 at 5:58 AM, Benjamin Klatt <benjamin@...> wrote:

Hi List,

 

is there an out-of-the-box way to generate the DAO objects with a suffix?

The only way I found so far is by extending an existing DAO generator.

 

Thanks for any feedback

 

br

benjamin

 



AW: Suffix for DAOs

by Benjamin-Klatt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Jeff,

 

If implemented such a plugin based on the new Version 1.2.2 from SVN and it works pretty good.

There are just two question:

 

1.  I am missing separate access to DAO package and interface/class names. In version 1.2.1, there was for example a method like getDAOInterfacePackage()

2.  What do you think about a common place to share plugins? We have up to know developed 4 Extensions/Plugins that may be helpful. Other OpenSource projects have a link list for external hosted downloads in their wiki.
That should not be that hard to be created for iBator, right?

 

All the best

Benjamin

 

 

Von: Jeff Butler [mailto:jeffgbutler@...]
Gesendet: Samstag, 4. Juli 2009 17:12
An: user-java@...
Betreff: Re: Suffix for DAOs

 

You can do it with a plugin.  There's an example supplied with Ibator that shows how to rename the example classes - same concept.

 

Jeff Butler

 

On Sat, Jul 4, 2009 at 5:58 AM, Benjamin Klatt <benjamin@...> wrote:

Hi List,

 

is there an out-of-the-box way to generate the DAO objects with a suffix?

The only way I found so far is by extending an existing DAO generator.

 

Thanks for any feedback

 

br

benjamin

 

 


Re: Suffix for DAOs

by Jeff Butler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've done some refactoring of attributes in 1.2.2.  I think that some of the prior methods were a bit misleading - for example, changing the DAO package in a plugin would have no real effect.  So, the new methods are limited to those that will actually do something useful.

To that end, look at get/setDAOImplementationType and get/setDAOInterfaceType - they do what you need.

I've just made a new WIKI page for Ibator plugins here:


Feel free to add to the page with links or code you wish to share.  I'll add a link to the WIKI page on the Ibator home page.

Jeff Butler



On Sun, Jul 5, 2009 at 4:40 PM, Benjamin Klatt <benjamin@...> wrote:

Hi Jeff,

 

If implemented such a plugin based on the new Version 1.2.2 from SVN and it works pretty good.

There are just two question:

 

1.  I am missing separate access to DAO package and interface/class names. In version 1.2.1, there was for example a method like getDAOInterfacePackage()

2.  What do you think about a common place to share plugins? We have up to know developed 4 Extensions/Plugins that may be helpful. Other OpenSource projects have a link list for external hosted downloads in their wiki.
That should not be that hard to be created for iBator, right?

 

All the best

Benjamin

 

 

Von: Jeff Butler [mailto:jeffgbutler@...]
Gesendet: Samstag, 4. Juli 2009 17:12
An: user-java@...
Betreff: Re: Suffix for DAOs

 

You can do it with a plugin.  There's an example supplied with Ibator that shows how to rename the example classes - same concept.

 

Jeff Butler

 

On Sat, Jul 4, 2009 at 5:58 AM, Benjamin Klatt <benjamin@...> wrote:

Hi List,

 

is there an out-of-the-box way to generate the DAO objects with a suffix?

The only way I found so far is by extending an existing DAO generator.

 

Thanks for any feedback

 

br

benjamin

 

 



AW: Suffix for DAOs

by Benjamin-Klatt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Jeff,

 

thanks for this page. We will prepare our stuff to provide it there.

 

The getter/setters for the types work. I was just looking for a way to get rid of this boring package/class name splitting ;)

Apart from this, I was happy to see this refactoring.

 

Btw.: Is there already a schedule for the new release?`

 

All the best

benjamin

 

 

Von: Jeff Butler [mailto:jeffgbutler@...]
Gesendet: Montag, 6. Juli 2009 16:58
An: user-java@...
Betreff: Re: Suffix for DAOs

 

I've done some refactoring of attributes in 1.2.2.  I think that some of the prior methods were a bit misleading - for example, changing the DAO package in a plugin would have no real effect.  So, the new methods are limited to those that will actually do something useful.

 

To that end, look at get/setDAOImplementationType and get/setDAOInterfaceType - they do what you need.

 

I've just made a new WIKI page for Ibator plugins here:

 

 

Feel free to add to the page with links or code you wish to share.  I'll add a link to the WIKI page on the Ibator home page.

 

Jeff Butler

 

 

On Sun, Jul 5, 2009 at 4:40 PM, Benjamin Klatt <benjamin@...> wrote:

Hi Jeff,

 

If implemented such a plugin based on the new Version 1.2.2 from SVN and it works pretty good.

There are just two question:

 

1.  I am missing separate access to DAO package and interface/class names. In version 1.2.1, there was for example a method like getDAOInterfacePackage()

2.  What do you think about a common place to share plugins? We have up to know developed 4 Extensions/Plugins that may be helpful. Other OpenSource projects have a link list for external hosted downloads in their wiki.
That should not be that hard to be created for iBator, right?

 

All the best

Benjamin

 

 

Von: Jeff Butler [mailto:jeffgbutler@...]
Gesendet: Samstag, 4. Juli 2009 17:12
An: user-java@...
Betreff: Re: Suffix for DAOs

 

You can do it with a plugin.  There's an example supplied with Ibator that shows how to rename the example classes - same concept.

 

Jeff Butler

 

On Sat, Jul 4, 2009 at 5:58 AM, Benjamin Klatt <benjamin@...> wrote:

Hi List,

 

is there an out-of-the-box way to generate the DAO objects with a suffix?

The only way I found so far is by extending an existing DAO generator.

 

Thanks for any feedback

 

br

benjamin

 

 

 


Re: Suffix for DAOs

by Jeff Butler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can use one of Ibator's Java DOM classes to do it for you:

FullyQualifiedJavaType fqjt = new FullyQualifiedJavaType(getDAOImplementationType());
String package = fqjt.getPackageName();

The next release will likely have the iBATIS3 support in it.  We're still working through a few issues with iBATIS3 before it's ready to go.

Jeff Butler


On Mon, Jul 6, 2009 at 10:12 AM, Benjamin Klatt <benjamin@...> wrote:

Hi Jeff,

 

thanks for this page. We will prepare our stuff to provide it there.

 

The getter/setters for the types work. I was just looking for a way to get rid of this boring package/class name splitting ;)

Apart from this, I was happy to see this refactoring.

 

Btw.: Is there already a schedule for the new release?`

 

All the best

benjamin

 

 

Von: Jeff Butler [mailto:jeffgbutler@...]
Gesendet: Montag, 6. Juli 2009 16:58


An: user-java@...
Betreff: Re: Suffix for DAOs

 

I've done some refactoring of attributes in 1.2.2.  I think that some of the prior methods were a bit misleading - for example, changing the DAO package in a plugin would have no real effect.  So, the new methods are limited to those that will actually do something useful.

 

To that end, look at get/setDAOImplementationType and get/setDAOInterfaceType - they do what you need.

 

I've just made a new WIKI page for Ibator plugins here:

 

 

Feel free to add to the page with links or code you wish to share.  I'll add a link to the WIKI page on the Ibator home page.

 

Jeff Butler

 

 

On Sun, Jul 5, 2009 at 4:40 PM, Benjamin Klatt <benjamin@...> wrote:

Hi Jeff,

 

If implemented such a plugin based on the new Version 1.2.2 from SVN and it works pretty good.

There are just two question:

 

1.  I am missing separate access to DAO package and interface/class names. In version 1.2.1, there was for example a method like getDAOInterfacePackage()

2.  What do you think about a common place to share plugins? We have up to know developed 4 Extensions/Plugins that may be helpful. Other OpenSource projects have a link list for external hosted downloads in their wiki.
That should not be that hard to be created for iBator, right?

 

All the best

Benjamin

 

 

Von: Jeff Butler [mailto:jeffgbutler@...]
Gesendet: Samstag, 4. Juli 2009 17:12
An: user-java@...
Betreff: Re: Suffix for DAOs

 

You can do it with a plugin.  There's an example supplied with Ibator that shows how to rename the example classes - same concept.

 

Jeff Butler

 

On Sat, Jul 4, 2009 at 5:58 AM, Benjamin Klatt <benjamin@...> wrote:

Hi List,

 

is there an out-of-the-box way to generate the DAO objects with a suffix?

The only way I found so far is by extending an existing DAO generator.

 

Thanks for any feedback

 

br

benjamin