HibernateD and DDBC - ORM and DB abstraction layer for D

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Wed Apr 3 09:40:51 PDT 2013


On Wed, 03 Apr 2013 16:28:36 +0200
"Vadim Lopatin" <coolreader.org at gmail.com> wrote:

> Hello!
> 
> I've started implemetation of ORM in D, with annotations and 
> interfaces similar to Hibernate.
> 
> As DB abstraction layer I wrote DDBC - library with interface 
> similar to JDBC. Only MySQL driver is implemented. PostgreSQL - 
> in progress.
> 
> Project is hosted on SourceForge: 
> https://sourceforge.net/p/hibernated/wiki/HibernateD/ License is 
> Boost
> 
> HibernateD collects metadata from classes annotated with 
> Hibernate-like UDAs.
> 
> Simple properties of supported: you can annotate fields, D 
> properties or getter+setter pairs in your class, of types string, 
> byte, short, int, long, ubyte, ushort, uint, ulong, byte[], 
> ubyte[], DateTime, Date, TimeOfDay; for non-nullable types to 
> support Null value use Nullable! template.
> 
> @Embedded entities supported - you can embed properties from 
> @Embeddable object to @Entity's table.
> 
> @OneToOne, @OneToMany, @ManyToOne, @ManyToMany relations are 
> supported. You can use Lazy! and LazyCollection! to support lazy 
> loading of aggregates.
> 
> You can query DB using subset of HQL (Hibernate Query Language).
> 
> Look at project wiki and unittests for more info.
> 

Sounds cool.

Can it be used with Vibe.d's system of asynchronous
connections? If not, then perhaps a backend for mysql-native
<https://github.com/rejectedsoftware/mysql-native/> could be added?



More information about the Digitalmars-d-announce mailing list