Skip to content

Commit d85f74f

Browse files
committed
BoxLang ORM compat
1 parent 613a8d6 commit d85f74f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

system/core/util/Util.cfc

+7-1
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,15 @@ component {
482482
}
483483

484484
/**
485-
* Get the Hibernate version string from Hibernate or Hibernate bundle version
485+
* Get the Hibernate version string from the running engine
486486
*/
487487
public string function getHibernateVersion(){
488+
// BoxLang Detection
489+
if( server.keyExists( "boxlang" ) ) {
490+
return ORMGetHibernateVersion();
491+
}
492+
493+
// Adobe + Lucee Convuluted ways
488494
var version = createObject( "java", "org.hibernate.Version" );
489495

490496
if ( version.getVersionString() != "[WORKING]" ) {

tests/specs/orm-enabled/HTMLHelperSpec.cfc

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ component extends="tests.resources.BaseIntegrationTest" {
1515
}
1616

1717
function run( testResults, testBox ){
18-
if ( isBoxLang() ) {
19-
return;
20-
}
2118
// all your suites go here.
2219
describe( "HTML Helper", function(){
2320
beforeEach( function( currentSpec ){

tests/specs/orm-enabled/ObjectPopulatorSpec.cfc

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ component extends="tests.resources.BaseIntegrationTest" {
1515
}
1616

1717
function run( testResults, testBox ){
18-
if ( isBoxLang() ) {
19-
return;
20-
}
2118
// all your suites go here.
2219
describe( "Object Populator", function(){
2320
beforeEach( function( currentSpec ){

0 commit comments

Comments
 (0)