I've noticed that a good number of developers are using SQL code in their extension code, so I'd like to point them to an article about an interesting Java ORM (Object Relational Mapping) called ActiveObjects.
While you may have already heard/worked with more famous ORMs such as Hibernate and IBatis you may also have noticed how much configuration code must be written before getting anything done
Well, it seems that finally the concepts of simplicity and ease of use have also landed in the Java world of ORMS.
Since SmartFoxServer provides quick prototyping and development with Python and Actionscript it's quite exciting to think about how simple would be database access with ActiveObjects
Here's a very nice article to get you started
The project homepage
cheers
[ARTICLE] ActiveObjects, an interesting ORM!
Not yet, but we plan to start testing soon.
As you mentioned the project is still in its first releases and documentation is far from those found with Hibernate... but maybe that's also because Hibernate is way more complicated
I will post here our findings as soon as we find the time to test it a little.
If you precede us, let us know
As you mentioned the project is still in its first releases and documentation is far from those found with Hibernate... but maybe that's also because Hibernate is way more complicated
I will post here our findings as soon as we find the time to test it a little.
If you precede us, let us know
Smartfox and ORM
Thanks for the reply, nig3d.
DAO patterns seem to be a nice and clean way to abstract the data access but on the other hand increase development time.
Since our main idea behind using an ORM lib was to reduce programming cost, DAO patterns do not seem to be the appropriate solution for us.
DAO patterns seem to be a nice and clean way to abstract the data access but on the other hand increase development time.
Since our main idea behind using an ORM lib was to reduce programming cost, DAO patterns do not seem to be the appropriate solution for us.
Hi Lapo,
Any case studies with ActiveObjects? Pretty interested in this ORM although I havent had experience with any ORMs at all. I am wondering, will there be performance impact or slowdowns if you use ORMs to access your database?
I mean instead of calling it directly, you have to go through the ORMs. I would imagine there may be some performance hit which may affect in busy periods. Correct me if I am wrong.
Any case studies with ActiveObjects? Pretty interested in this ORM although I havent had experience with any ORMs at all. I am wondering, will there be performance impact or slowdowns if you use ORMs to access your database?
I mean instead of calling it directly, you have to go through the ORMs. I would imagine there may be some performance hit which may affect in busy periods. Correct me if I am wrong.
Little late reply,but still worth mentioning
latest version of Ibatis (3.x) is pretty simple, they have finally managed to make it simple, you can annotate interface method with SQL and then everything gets done "automagically" of course this implies of using spring to do rest of the magic, but overall its pretty simple setup.
magic interface methods look something like this:
and then you can invoke that method from your higher layer code, directly and it just works.
latest version of Ibatis (3.x) is pretty simple, they have finally managed to make it simple, you can annotate interface method with SQL and then everything gets done "automagically" of course this implies of using spring to do rest of the magic, but overall its pretty simple setup.
magic interface methods look something like this:
Code: Select all
@Delete("DELETE from users where id=#{userid}")
public void deleteUserForId(@Param("userid") Integer id);
and then you can invoke that method from your higher layer code, directly and it just works.
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 68 guests