-
Notifications
You must be signed in to change notification settings - Fork 81
ORM:first_example
Mark Drew edited this page May 30, 2012
·
1 revision
Let's have a look at a simple example where we want to persist a certain CFC to a MySQL database. Further below all necessary steps in order to get ORM to work with Railo are described. We will assume the following scenario: We have an easy blog where an author can submit his blog post containing the following properties for an entry:
- author
- publish date
- title
- teaser
- text
- tags
<cfcomponent persistent="true">
<cfproperty name="entryID" generator="increment">
<cfproperty name="author">
<cfproperty name="publishDate">
<cfproperty name="title">
<cfproperty name="teaser">
<cfproperty name="text">
<cfproperty name="tags">
</cfcomponent>
So let's create the table with the following statement:
- Getting to know Railo Server
- Railo Server features & specifications
- Getting started with Railo Server
- Installation & configuration
- Railo Server Versions
- Developing with Railo Server
- Deploying Railo Server apps
- Managing Railo Server apps
- Railo Server Extensions
- Useful resources & further reading
- Developing & debugging Railo Server
- FAQs