Tags:
General, Coldfusion, ColdFusion 9, Hibernate, Database, CFORM
I have been meaning to write this up for some time now, and haven't had the time to do so. One of the things that I found when learning CF-ORM for the first time, was it was very over whelming to say the least and a lot of questions would come from trying to use it.
Now 2 years down the track and I can say that there are times to use it and times not to use it, and it all boils down to whether you want the application to be scalable or you just don't care, because you know the amount of traffic will never get that high to matter.
Either way I want to touch on some things that I did discover, where I quickly changed my thinking as I went along.
Tags:
Coldfusion, ColdFusion 9, CFORM
Well I have spent a good 2 days trying to work this problem out, to only find that this is not a problem with code that I am writing. It turns out that this applies to both legacy and new databases, and for the life of me I can not understand why this is a problem in ColdFusion itself.
Tags:
ColdFusion 9, ColdFusion Builder, CFORM
The number one feature on my list, and I am sure that so many others would have to agree. In my last blog post I outlined how much time was wasted in trying to get something that might seem very basic to some, but it has highlighted the need for it anyway.
Tags:
ColdFusion 9, CFORM
The last week I had been working with another friend of mine trying to map some ORM to an existing database, after awhile we started discovering something very weird. Understanding HQL at the best of times is not easy as it really doesn't work how you think it does, especially when you are trying to come to grips with how it works.
Anyway the problem that manifested itself was with an older database, that had composite keys in the actual tables. Never having used it like this before I thought to myself that it should be that hard, and boy was I wrong with that assumption. I thought had relationships down pat, and this has certainly shown me that the is sometimes a curve ball thrown our way that will really make us think
Tags:
General, ColdFusion 9, CFORM
So today I was writing a very quick and dirty maintenance program, and came across something that has stumped me for any sort of answer. Now there isn't anything special about the code and that is why it has me stumped.
Tags:
General, Coldfusion, ColdFusion 9, CFORM
I discovered something very interesting the past week, that actually has me scratching my head. I had my host provider move my website over to a ColdFusion 9.01 server, so that I could use some of the new ORM features that are only available in that version.
However the hosting provider would fix the site and get it working, and then when the server was restarted, my website would no longer work again.
Then between the host and myself we have discovered an interesting problem.
Tags:
ColdFusion 9, CFORM, Coldbox
I was curious on how to go about doing something like this in ColdFusion ORM, and how hard it would be to accomplish. The problem wasn't as hard as I thought it might be, in fact once you get around the concept of how Nested Sets work. It was fairly painless putting it together.
Tags:
ColdFusion 9, CFORM
After seeing a question on the cf-orm developers mailing list, I thought I would investigate the problem a little further. It turns out that something so basic has not been implemented correctly, or ColdFusion has made it a bit harder than one should need to think about the problem.
I only have one work around for this which I have added at the end of this post.
Tags:
General, Coldfusion, ColdFusion 9, CFORM, Coldbox
Most people would not even know this as being a problem, and it is a problem that I seriously can't believe ColdFusion doesn't do. Anyway this is a problem that one has to be aware of, and take into consideration when designing, migrating and mixing applications.
So why is this a problem?
Tags:
Coldfusion, CFORM
I spent the day trying to get my head around mapping and older Application to the new ORM in ColdFusion 9, to only be very disillusioned again with CF-ORM.
I really hope that this problem will be addressed at some stage, as it would be very beneficial to some applications out there.
Now don't get me wrong with this, as first you can extend another component and use methods in that component. But what you can't do natively is have the properties of the extended component persist into the table.
Tags:
Coldfusion, CFORM
While developing on a development server I would have my ORMSetting dbcreate='dropcreate' and on my testing/staging/production server it would be set to update.
However the last hour i have come to the conclusion that the setting dropcreate is nothing but buggy as hell.
Tags:
Coldfusion, CFORM
I have actually come across this problem once before, however it was under different circumstances.
Tags:
Coldfusion, CFORM
It is no secret that I don't like the current implementation, and it's not because it is hard to learn. But Adobe have made our work harder than they really could have.
Tags:
Coldfusion, CFORM
After having a bit of a debate on a mailing list over the last few days, I thought I would blog a bit more about this problem. But lets get this right first, it isn't a problem so to speak but it could be if you are not aware or are just learning the new ColdFusion 9 ORM.
I am going to place myself into the shoes off someone who might be learning database design, and ColdFusion 9 ORM at the same time.
Tags:
Coldfusion, CFORM
When ColdFusion 9 was in its very early stages I raised an Enhancment Request where we could use these as part of the persistent Entity or as it should be know Domain Class.
Adobe in their wisdom chose to ignore this E/R, because they thought the users would not be up to understanding it.
In the last few days there has been a few blogs by Dan Vega on his interpretation of how it needs to be implemented. And Dan nothing against your attempt, you should be doing it at the persistent / domain class layer and not the service layer.
Tags:
Coldfusion, CFORM
After having a discussion about why cfdump() uses getters to grab its data, I was curious that Adobe could have checked to see if the lazy is true on a property and if so not fetch it.
Tags:
Coldfusion, CFORM
While playing around with ColdFusion 9 and the ORM features I suddenly changed my mind, on the property definition for the ORM and got some very unexpected behaviour.
The Adobe Software Engineer claims that this works for him, and I am at a loss to explain to him that this is still a bug.
Tags:
Coldfusion, CFORM
This is not a real problem in the sense that it shouldn't happen, but it is a problem if you are not aware what is actually happening here.
Tags:
Coldfusion, CFORM
As with my previous blog, there are some more things that we as a developer need to be very weary off. One of these is the relationship between tables where one table can have a many relationship with another.
Tags:
Coldfusion, CFORM
One of the best things an ORM can introduce for us ColdFusion developers is the ability to, create mappings or persistent components for our legacy databases. Now don't get confused here, legacy is a term that is used for databases that were not created with an ORM.
However in ColdFusion their is a major trap that one needs to be very careful about, and although it shows another problem that ColdFusion has never addressed. This is something that we as developers need to be aware of when we begin migrating over to using the new ORM type features of ColdFusion
Tags:
Coldfusion, CFORM
It seems that nobody has fully understood what I was trying to say in the previous post, and I thought I would explain it in a more step by step process.
Tags:
Coldfusion, CFORM
ColdFusion 9 has given us something wonderful when it comes to the database, however maintaining the code to be able to just move it to another server and database isn't extremely easy when it comes to data.
Tags:
Coldfusion, CFORM
One of things that I love about the new features of ColdFusion 9, is of course the ORM and it will be no secret how much I love this feature.
Tags:
Coldfusion, CFORM
In my last post I gave you a very quick introduction on how to get started with ORM in ColdFusion 9, in this post I am going to give you a look at some of its power that will make you think twice about using cfquery again.
Tags:
Coldfusion, CFORM
Well as well all know by know that the news is ColdFusion 9 has stepped out into the wild, and that means we can all begin to have a play with some of the new features. And there is a lot that has been packaged into this release, and one of the biggest anticipated integrations into ColdFusion has to be Hibernate.
More Entries