Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » embedding JPQL in a typesafe manner
embedding JPQL in a typesafe manner [message #610584] Tue, 01 July 2008 14:12
Miguel Garcia is currently offline Miguel GarciaFriend
Messages: 77
Registered: July 2009

I'm exploring the pros and cons of embedded query languages (JPQL, LINQ) in
a typesafe manner (to detect misspellings at compile-time, check type
agreement between operands in WHERE clauses) and I was wondering whether
other Dali users are also working on that.

In a nutshell, such embeddings allow writing code similar to this [1]

List<Tuple3<String, Integer, Date>> rows =
new QueryBuilder(datasource)
.where(gt(p.height, 170))
.select(, p.height, p.birthday)

but with an API generated automatically from an Ecore metamodel ( ) instead of one manually built as in the
example above.

It would be great to hear from others also working in this area.



[1] Embedded Typesafe Domain Specific Languages for Java
Jevgeni Kabanov, Rein Raudj
Previous Topic:Dali fails with Entity's from JAR
Next Topic:Re: embedding JPQL in a typesafe manner
Goto Forum:

Current Time: Mon Jun 14 13:37:18 GMT 2021

Powered by FUDForum. Page generated in 0.01668 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top