Skip to content
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.
/ DaoPlayground Public archive

An attempt at writing a simple expressive object relational mapping framework for Java. This is mostly junk.

Notifications You must be signed in to change notification settings

jordansjones/DaoPlayground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a playground area for an idea I had about making data access easier in Java.

The idea comes from Linq to SQL in .Net.

Here is an example what this might look like:

final UserContext context = DataContext.from (User.class);
// This could also be written as
// final UserContext context = ContextFactory.newInstance(User.class, UserContext.class);

final Enumerable<User> userEnumerable = from (User.class)
		.whereEmailAddress ("jordansjones@gmail.com")
		.or ().whereEmailAddress ("email@domain.net")
		.select (User.class);

final int totalUsers = userEnumerable.count ();
final User[] users = userEnumerable.toArray ();

About

An attempt at writing a simple expressive object relational mapping framework for Java. This is mostly junk.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages