www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - hunt-entity v2.0.0 released!

reply Brian <zoujiaqing gmail.com> writes:
entity rename to hunt-entity.

hunt-entity is an ORM for D programming language, Like java's JPA 
and PHP's Doctrine2.

The main features of this release:
1. Support EQL (Entity Query Lanuage)
2. Support for ManyToMany
3. Replace SqlBuilder with QueryBuilder
4. Update hunt-database version to v1.0.0
5. Fix some bugs




```D

auto q = em.createQuery!User("SELECT u FROM User u WHERE u.age > 
18 AND u.status = 1 ;");
foreach(u ; q.getResultList())
{
     logDebug("User id: %s , name: %s, age: %s".format(u.id, 
u.name, u.age));
}


```


Repository:
https://github.com/huntlabs/hunt-entity
Nov 02 2018
parent reply Suliman <evermind live.ru> writes:
Entity Query Lanuage
Can't understand difference with SQL...
Nov 02 2018
parent Brian <zoujiaqing gmail.com> writes:
On Friday, 2 November 2018 at 14:49:00 UTC, Suliman wrote:
Entity Query Lanuage
Can't understand difference with SQL...
You can look JPQL & DQL. EQL use Entity Object to query result.
Nov 02 2018