Is OJB better than JBDC

HI,I have a problem. We are currently using OJB for data access. I want to know the public opinion that is OJB better than JDBC.
[142 byte] By [bronze-starDukes] at [2007-11-26 12:14:37]
# 1
Ummm OJB sits on top of JDBC.
silverstar at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...
# 2
I mean whether to use direct jdbc ....is it fast
bronzestar at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...
# 3
> I mean whether to use direct jdbc ....is it fastWell... yes direct JDBC could in theory be faster. Is this your real issue?There are lots of good reasons to use ORM solutions.
silverstar at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...
# 4
if speed is the only issueMessage was edited by: Nistelrooy
bronzestar at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...
# 5

> if speed is the only issue

>

Well JDBC has the potential to be faster sure.

This seems a very dangerous question though because we are unlikely to be talking about a performance increase of a great amount here. If your system is giving you major performance problems then I am not sure that taking out the ORM layer will help.

And there are many scenarios in which this could hurt.

silverstar at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...
# 6
It's quite possible you could develop a system faster using OJB than one using JDBC.
platinumsta at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...
# 7
> It's quite possible you could develop a system faster> using OBJ than one using JDBC.I would say it's likely. I would also say that it's going to be faster to fix.
silverstar at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...
# 8

> > It's quite possible you could develop a system

> faster

> > using OBJ than one using JDBC.

>

> I would say it's likely. I would also say that it's

> going to be faster to fix.

Well then, if speed is the only issue then the answer is pretty clear.

platinumsta at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...
# 9
there are a lot of demerits of ojb:->We cannot write direct sql queries with joins and all that to ojb.->we have to do a lot of extra work.Am i right..so what is the solution
bronzestar at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...
# 10

> so what is the solution

Get a good outline of your requirements.

Most of the time an ORM solution is the way to go. But sometimes it isn't. We don't have any idea what you are doing so we can't say which one is better. Likely it's ORM, again based on probability, but that's all we have to go on at this point.

silverstar at 2007-7-7 14:17:26 > top of Java-index,Archived Forums,Socket Programming...