[Qt-interest] Any Hibernate-like tool for Qt?

Alessandro Bottoni alexbottoni at yahoo.it
Thu Aug 20 10:57:30 CEST 2009


Hi There,
does anybody know if there is anything like Hibernate
(https://www.hibernate.org/) for Qt/C++?

Googling around, I found a couple of C++ libraries that implement some
kind of database persistence and/or Object-Relational Mapping, like
LiteSQL (http://sourceforge.net/apps/trac/litesql/) and Hiberlite
(http://code.google.com/p/hiberlite/).

Unfortunately, these tools seems to be missing one of the most
interesting features of Hibernate: its capability to reverse-engineer an
existing database and auto-magically generate the code for the required
mapping classes (see: https://www.hibernate.org/255.html).

Does anybody know if there is anything like this database
reverse-engineering tool for Qt/C++ (or if anything like that is under
active development at this moment)? Google did not help...

Many thanks for your attention.

PS: Yes, I'm aware of the database classes of Qt
(http://doc.trolltech.com/4.5/database.html) and I know they provide a
very good "Active record" pattern implementation
(http://en.wikipedia.org/wiki/Active_record_pattern). I'm just searching
 an even more powerful and confortable tool. I'm horribly lazy...

PS2: No, I do not need any kind of run-time support. A plain, old static
code generator (that is: a preprocessor), like the one used by
Ruby-on-Rails for its "Scaffolding"
(http://en.wikipedia.org/wiki/Scaffold_%28programming%29), would be fine
for me.

-- 

Alessandro Bottoni
Website: http://www.alessandrobottoni.it/

Who wants to remember that escape-x-alt-control-left shift-b puts you
into super-edit-debug-compile mode?
     -- (Discussion in comp.os.linux.misc on the intuitiveness of
commands, especially Emacs.)




More information about the Qt-interest-old mailing list