bugbreeder | boulgakov a écrit :
Certains d'entre vous ont-ils déja utilisé avec bonheur un de ces outils, ou un autre qui m'aurait échappé ? Points faibles, points forts ? Mes besoins sont assez simple : sauvegarder un objet avec une arborescence dessous, recharger le même objet en tirant toute l'arborescence. Le tout sans taper une ligne de SQL. Pas de threads, le "cache" je sais pas ce que c'est et je n'en ai donc pas besoin, le lazy fetching je peux m'en passer etc.
|
Salut,
Vu tes besoins tu pourrais utiliser les BDB (Berkeley DB), qui ont justement une architecture d'arbre (s'appuient sur BTree) et repondent du point de vue Java au paradigme de la Map (Key=Primary Key, Value=Objet serialise), avec 1 Map <=> 1 Table de SGBD. Voila un commentaire que j'ai fait sur le Wiki de ma boite (j'ai pas traduit, excuse, c'est juste que je suis une grosse feignasse et qu'en plus il est tard) :
--------------------------------------------------
Berkeley DB (also known as BDB) is a lightweight database mostly used in embedded tools, probably the most notorious examples are Subversion, VCS, Cisco routers and Motorola in some of their smartphones. The original version was written in C, but a Java implementation exists as well, the most current is SleepyCat, now a property of Oracle. BDB is NOT a relational database, nor does it own any Java JDBC drivers, which also means there is no declarative query syntax like SQL. BDB are based on a Key/Value paradigm, with BTree as typical physical implementation, so one can sensibly consider from a Java point of view that they match the java.util.Map Java interface paradigm with java.util.TreeMap as theconcrete implementation. While a standard database contains a group of tables, a BDB environment (DbEnv) contains a group of Maps (StoredMap) as BDB physically store its tables/Maps as files. From a very pragmatic Java point of view, it means one has to get a given Map from a BDB Database and use it the standard Java way with plain put/get methods. --------------------------------------------------
Je pourrais t'envoyer 2 projets eclipses tout faits pour te faire gagner du temps, 1 pur BDB et un autre (le meme modele mais en plus DAO-enabled) compatible a la fois MySQL (par Hibernate evidemment, ca te reconcilierait avec le monde Hibernate) et BDB. Donne moi une adresse email pour l'envoi si ca t'interesse.
@++ |