PS: The .NET version of iBATIS already has generation for insert/update/delete.
Clinton
On 9/24/06, Clinton Begin <
[EMAIL PROTECTED]> wrote:
Nathan has some good points, and I agree with them.
However, I'd like to implement generation of insert, update and delete for people who do use a convention based approach to development. If their columns and properties do match up, this could just work.
In addition, I've already written a statistical pattern matcher (it's actually committed code) for matching up columns that are somewhat different, like FIRST_NAME to firstName or even fname. It's not perfect, but it's interesting.
Cheers,
ClintonOn 9/23/06, Nathan Maves < [EMAIL PROTECTED]> wrote:There are a few things to consider with this request. I would say
that 95% of the time your java properties will not match your db
column names. You java object might also span multilple tables as
well. I think you are asking a bit too much here. You might want to
check out the tools section of the ibatis site. Jeff has put in a lot
of work on Abator which is a sqlmap generator.
Nathan
On 9/23/06, Leandro Saad < [EMAIL PROTECTED] > wrote:
> Hi all. Is there anyway to handle CRUD without having to write the SQL
> statements on sqlMap.xml?
>
> I'd like to have insert/update/delete/getById/getAll using
> reflection by default.
> If this is not implemented, is it possible to implement?
>
> --
> Leandro Rodrigo Saad Cruz
> software developer - certified scrum master
> :: scrum.com.br
> :: db.apache.org/ojb
> :: guara-framework.sf.net
> :: xingu.sf.net
