You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@empire-db.apache.org by Francis De Brabandere <fr...@gmail.com> on 2009/11/18 01:16:40 UTC

Some thoughts

Hi all,

I cleaned up the code generator a bit. I hope I'm not too much
interfering with you guys. Let me know if you don't agree with this
way of working...

Some thoughts:

[codegen]
- I think we should try to keep the code generator independent from
the console application so that we can easily create and IDE or Maven
plugin for the code generator.
- We need to think about how to support multiple database vendors. I'm
willing to have a go at a MySQL/Postgre version once we have torn out
the database-specific stuff in one or more separate class(es).

[general]
- I'm a big fan of (unit) testing so I will probably add tests here
and there over time... Automated integrations tests for HSQLDB, H2 and
Derby should be possible. On the other hand testing is mostly of the
time easier when using composition instead of inheritance.
- I'd like to suggest to move to slf4j for logging as there are known
issues with commons logging. See this page for some background info:
http://www.slf4j.org/faq.html#yet_another_facade

Cheers,
Francis

-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

re: Some thoughts

Posted by Rainer Döbele <do...@esteam.de>.
Hi everyone,

thanks for everything you've done and I apologize for not being able to participate more frequently at the moment.
But I will have a look at the code generator this weekend.

As far as your thought's are concerned:
My idea is that in the end the codegen should (primarily) become a Maven plugin. 
During development it is probably easier to have a console application, but it should indeed be kept independent as Francis suggests.

About sl4j: I don't know much about the benefits compared to log4j. I have briefly followed the link you provided but did not have time to get into further detail. So far I have never had problems with log4j. 
The question is: Wouldn't we have to switch the entire project and not just the codegen to slf4j and is it really worth it? If it's worth I wouldn't mind changing, but it's not on the top of my list.

Regards
Rainer


Francis De Brabandere wrote:
> re: Some thoughts
> 
> Hi all,
> 
> I cleaned up the code generator a bit. I hope I'm not too much
> interfering with you guys. Let me know if you don't agree with this
> way of working...
> 
> Some thoughts:
> 
> [codegen]
> - I think we should try to keep the code generator independent from
> the console application so that we can easily create and IDE or Maven
> plugin for the code generator.
> - We need to think about how to support multiple database vendors. I'm
> willing to have a go at a MySQL/Postgre version once we have torn out
> the database-specific stuff in one or more separate class(es).
> 
> [general]
> - I'm a big fan of (unit) testing so I will probably add tests here
> and there over time... Automated integrations tests for HSQLDB, H2 and
> Derby should be possible. On the other hand testing is mostly of the
> time easier when using composition instead of inheritance.
> - I'd like to suggest to move to slf4j for logging as there are known
> issues with commons logging. See this page for some background info:
> http://www.slf4j.org/faq.html#yet_another_facade
> 
> Cheers,
> Francis
> 
> --
> http://www.somatik.be
> Microsoft gives you windows, Linux gives you the whole house.

missing maven dependency for mockito

Posted by Benjamin Venditti <be...@web.de>.
Hi Francis,

just had a look at your changes ... seems there is the dependency for 
mockito in the pom.xml missing.
... will have a more detailed look at the other stuff later this week.

regards
    benjamin

Francis De Brabandere schrieb:
> Hi all,
>
> I cleaned up the code generator a bit. I hope I'm not too much
> interfering with you guys. Let me know if you don't agree with this
> way of working...
>
> Some thoughts:
>
> [codegen]
> - I think we should try to keep the code generator independent from
> the console application so that we can easily create and IDE or Maven
> plugin for the code generator.
> - We need to think about how to support multiple database vendors. I'm
> willing to have a go at a MySQL/Postgre version once we have torn out
> the database-specific stuff in one or more separate class(es).
>
> [general]
> - I'm a big fan of (unit) testing so I will probably add tests here
> and there over time... Automated integrations tests for HSQLDB, H2 and
> Derby should be possible. On the other hand testing is mostly of the
> time easier when using composition instead of inheritance.
> - I'd like to suggest to move to slf4j for logging as there are known
> issues with commons logging. See this page for some background info:
> http://www.slf4j.org/faq.html#yet_another_facade
>
> Cheers,
> Francis
>
>