|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Suffix for DAOsHi 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 DAOsYou 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:
|
|
|
AW: Suffix for DAOsHi 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. All the best Benjamin Von: Jeff Butler
[mailto:jeffgbutler@...] 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 DAOsI'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:
|
|
|
AW: Suffix for DAOsHi 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@...] 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. All the best Benjamin Von: Jeff Butler [mailto:jeffgbutler@...] 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 DAOsYou can use one of Ibator's Java DOM classes to do it for you: 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:
|
| Free embeddable forum powered by Nabble | Forum Help |