Introduction
ColdBox ORM Module
The cborm module is a module that will enhance your experience when working with the ColdFusion ORM powered by Hibernate. It will not only enhance it with dynamic goodness but give you a fluent and human approach to working with Hibernate. Basically making working with Hibernate not SUCK!

Some Features

    Service Layers with all the methods you could probably think off to help you get started in any project
    Virtual service layers so you can create virtual services for any entity in your application
    Automatic RESTFul resources handler, focus on your domain objects and business logic, not the boilerplate of REST
    ActiveEntity our implementation of Active Record for ORM
    Fluent queries via Hibernate's criteria and detached criteria queries with some Dynamic CFML goodness
    Automatic transaction demarcation for save and delete operations
    Dynamic finders and counters for expressive and fluent shorthand SQL
    Automatic Java casting
    Entity population from json, structs, xml, and queryies including building up their relationships
    Entity validation via cbValidation
    Includes the Mementifier project to produce memento states from any entity, great for producing JSON
    Ability for finders and queries to be returned as Java streams using our cbStreams project.
1
# A quick preview of some functionality
2
3
var book = new Book().findByTitle( "My Awesome Book" );
4
var book = new Book().getOrFail( 2 );
5
new Book().getOrFail( 4 ).delete();
6
new Book().deleteWhere( isActive:false, isPublished:false );
7
8
property name="userService" inject="entityService:User";
9
10
return userService.list();
11
return userService.list( asStream=true );
12
13
var count = userService.countWhere( age:20, isActive:true );
14
var users = userService.findAllByLastLoginBetween( "01/01/2019", "05/01/2019" );
15
16
userService
17
.newCriteria()
18
.eq( "name", "luis" )
19
.isTrue( "isActive" )
20
.getOrFail();
21
22
userService
23
.newCriteria()
24
.isTrue( "isActive" )
25
.joinTo( "role" )
26
.eq( "name", "admin" )
27
.asStream()
28
.list();
29
30
userService
31
.newCriteria()
32
.withProjections( property="id,fname:firstName,lname:lastName,age" )
33
.isTrue( "isActive" )
34
.joinTo( "role" )
35
.eq( "name", "admin" )
36
.asStruct()
37
.list();
Copied!
In other words, it makes using an ORM not SUCK!

Versioning

The ColdBox ORM Module is maintained under the Semantic Versioning guidelines as much as possible.Releases will be numbered with the following format:
1
<major>.<minor>.<patch>
Copied!
And constructed with the following guidelines:
    Breaking backward compatibility bumps the major (and resets the minor and patch)
    New additions without breaking backward compatibility bumps the minor (and resets the patch)
    Bug fixes and misc changes bumps the patch

License

Important Links

Discussion & Help

The Ortus Community is the way to get any type of help for our entire platform and modules: https://community.ortussolutions.com

Professional Open Source

Ortus Solutions, Corp
The ColdBox ORM Module is a professional open source software backed by Ortus Solutions, Corp offering services like:
    Custom Development
    Professional Support & Mentoring
    Training
    Server Tuning
    Security Hardening
    Code Reviews
    Much More

HONOR GOES TO GOD ABOVE ALL

Because of His grace, this project exists. If you don't like this, then don't read it, it's not for you.
"Therefore being justified by faith, we have peace with God through our Lord Jesus Christ: By whom also we have access by faith into this grace wherein we stand, and rejoice in hope of the glory of God." Romans 5:5
Last modified 8mo ago