Leverage CommandBox to install into your ColdBox app:
Lucee 5.x+
ColdFusion 2016+
Unfortunately, due to the way that ORM is loaded by ColdFusion, if you are using the ORM EventHandler or ActiveEntity
or any ColdBox Proxies that require ORM, you must create an Application Mapping in the Application.cfc
like this:
The module registers a new WireBox DSL called entityservice
which can produce virtual or base ORM entity services. Below are the injections you can use:
entityservice
- Inject a global ORM service
entityservice:{entityName}
- Inject a Virtual entity service according to entityName
Here are the module settings you can place in your ColdBox.cfc
under moduleSettings
-> cborm
structure:
We have also integrated a UniqueValidator
from the validation module into our ORM module. It is mapped into WireBox as UniqueValidator@cborm
so you can use in your model constraints like so:
Hibernate 5.4 - https://hibernate.org/orm/documentation/5.4/
You will need to update to the latest ORM Beta Extension - https://download.lucee.org/#FAD1E8CB-4F45-4184-86359145767C29DE
Hibernate 4.3 - https://hibernate.org/orm/documentation/4.3/
Hibernate 5.2 - https://hibernate.org/orm/documentation/5.2/