By barneyb on April 9, 2010
When you're mapping relationships with Hibernate, you have to reconcile the uni-directional nature of Java references with the bi-directional nature of RDBMS foreign keys. Consider this simple database schema with a single relationship:
+———-+
+——–+ | PET |
+ PERSON | +———-+
+——–+ | [...]
Posted in coldfusion, database, orm
By barneyb on April 7, 2010
Continuing the transactions thread, I wanted to talk about a couple specific reasons that transactions are vitally important in ORM applications. Even more than in raw-SQL applications. I consider them mandatory anywhere, but I would argue that if you feel compelled to skip them for some reason, you'd be better off leaving them out of [...]
Posted in coldfusion, database, orm
By barneyb on April 7, 2010
<rant>
Every time TIOBE comes out with new listings people bitch about ColdFusion. It bugs the shit out of me. Here's the deal folks:
ColdFusion is a server product. It is NOT a language. CFML is a language. You don't write ColdFusion, you write CFML and then you run your CFML on ColdFusion (or Railo, or OBD). [...]
Posted in cfml, coldfusion, personal, railo
By barneyb on April 5, 2010
As with any new persistence technology, CF9's ORM functionality has necessitated porting my TransactionAdvice for ColdSpring. The previous "CFML" version was really "CFML/SQL/ORM" and is still the way to go if you're not using ORM functionality. The new version (cf9ormtransactionadvice.cfc) is specific to ORM applications on CF9.0. It will not provide transactionality for SQL-based apps [...]
Posted in coldfusion, orm
By barneyb on March 31, 2010
I've been working towards this for quite some time, and last night I finally replaced ColdFusion with Railo on my personal server. By and large the switch went flawlessly. I made a few compatibility changes ahead of time and found and fixed a few issues subsequently, but really smooth overall. Even better, the memory footprint [...]
Posted in cfml, coldfusion, meta, railo
By barneyb on March 30, 2010
I just made another minor tweak to FB3Lite to fix out-of-the-box ColdFusion 9 compatibility. CF9 added a 'location' built-in function, which means that the function of the same name that FB3Lite provides now generates a compiler error. Fortunately, since functions are real data within CFML, a simple realiasing gets around the issue. This creates a [...]
Posted in coldfusion, fusebox, tools
By barneyb on March 22, 2010
I'm sure I wasn't the only one that was sorely disappointed when Adobe released CF9 without the ability to execute HQL queries via the CFQUERY tag. Using a function (ormExecuteQuery) works, but it's really ungainly if you have complex – or even just long – HQL or need to build your statement conditionally, and you [...]
Posted in cfml, coldfusion, database
By barneyb on March 10, 2010
A while back I made an attempt to move Pic of the Day (NSFW) off of ColdFusion 8 and onto Railo 3. I can't afford a license of CF9, so my only upgrade path is through a free alternative. Unless someone has an extra four grand they want to give me….
Last time I was foiled [...]
Posted in coldfusion, meta, potd, railo
By barneyb on February 12, 2010
Last night I finally kicked JRun to the curb and replaced it with Tomcat on my personal server. I knew JRun was a pig and that I'd get some improvements by switching, I'd just never gotten around to doing it. I don't know why I waited. Here are two graphs from my server, see if [...]
Posted in coldfusion, meta
By barneyb on February 3, 2010
And just to be clear, when I say "feature" I actually mean "completely broken behaviour," though for a change of pace it's not with the compiler. Probably. Hopefully.
Consider this innocent-seeming code:
insert into test (s) values (
'dsn_A – record 1'
)
Every CF app has this (or equivalent) in a [...]
Posted in coldfusion