Rafael Steil wrote:Hibernate integration was discussed many times here in the board. A quick search will show you the topics
Rafael
Hibernate sucks. And MySQL sucks for everything but small websites.
I am using sqlmaps, which lets me use my own queries, and achieve full database portability, in the way that i just have a config file with the database name i am using, and it loads the respective file for that database. Once you port the queries, you are done.
Some of the code in jforum is very cryptic. You are implementing the connection pools yourself, and doing lots of stuff you could have done way simpler.
I decided to go with jndi datasources for the databases. It's faster and requires no implementation..
For example, to do a query, i just have to do:
Object = sqlmap.queryForObject("query",parameter);
That's it. I can do it in a transaction if i want to, the jndi datasource will take care of the connection pool.
Other things i have saw is your i18n code. It is simple, yet not so simple as i wanted. I did a simple templatemodel with freemarker, and use it from a filter. Freemarker does it all, with no code rather than the 2-3 lines of the template model. Then i can call any property key with ${i18n.keyname} but i am getting offtopic.
Last thing, i saw in an old version of jforum (haven't checked the newest one) that you don't use foreign keys. Good lord man, your database is just flawed. You think that just because you are the one that calls your queries, that you can keep the database integrity.
Although I prefer to do queries myself, Hibernate is a very good and successfull project. Also, "MySQL sucks for everything but small websites" is the typical statement from postgresql / oracle guys.
Could you please point to the code you refer to?
In fact, the I18n code was simpler in previous versions, but for some reasons I put some more "utility" methods. You need to have in mind that almost all configurations files in JForum can be reloaded at runtime, merged with user spefic settings and so on, and that's one of the reasons there is a bit more of code.
I aggree that this is a flaw. I started coding JForum when mysql 4 series was just in beta and now, with 20k lines of code, to maintain JForum is not exactly a simple task, since I do it in my free time. In some future version I plan to improve database schema.
I believe the current production version 4 doesn't support some of these. All but triggers i use in my own forum, so i am not targetting mysql
I meant that i thought you were making jforum more complex than needed, and making it more difficult to introduce new databases.
My database is based on yours, but i enhanced it. This proved a heavy task, since by definition, you can't have a post without having a topic, and you can't have a topic without creating a post either, so the referencial integrity gets stuck in a loop.
On the other hand, most of my queries are very very long and complex.
How many queries do you use to render the mainpage? I use only one, but am still working on it
My project is called "mortiforo", coming from the spanish word mortifero, which means deadly. We are neighbors, i am in Venezuela.
You can find it in sourceforge.
I am not a lawyer so i dont know what license the project will be since i don't know the licenses from all the libraries and such, but it will be either gpl or bsd.
Rafael Steil wrote:Nope, DB2 is not supported.
Rafael
In the renaissance, how big were the dinosaurs? Did you have tiny ads?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|