There is a new version of the opensource Object/Relational mapping tool ObJectRelationalBridge (OJB) available. The new version includes a graphical tool for building mappings and JTA Integration for J2EE AppServer environments. OJB is an Object/Relational mapping tool that supports ODMG 3 API
s, with a JDO interface also in the works.
More info is available here: http://objectbridge.sf.net.
From the Release-notes:
------------------------
ObJectRelationalBridge -- Bridging Java Objects and Relational Databases
ObJectRelationalBridge (OJB) is an Object/Relational mapping tool that provides transparent persistence for Java Objects against relational databases.
OJB supports multiple APIs:
- A full featured ODMG 3.0 compliant API.
- planned: A JDO compliant API
- A low-level PersistenceBroker API which serves as the OJB persistence kernel.
OJB can be used in single VM mode or in a distributed, loadbalanced Client/Server mode.
OJB uses an XML based dynamic Object/Relational Mapping that can be manipulated at
runtime through a simple Meta-Object-Protocol (MOP).
OJB provides several advanced O/R features like M:N associations, a pluggable ObjectCache,
lazy materialization through virtual proxies and
a distributed lock-management with configurable Transaction-Isolation Levels.
new features:
- Allow autoincrement for non-pk fields
- Platform enhancements for several RDBMS
- Improved "out-of-the-box" support for Informix and Oracle
- JTA Integration
- Proxies for 1:1 references
- Order of insert statements in ODMG transaction commit cares for foreign key constraints on the database
- PersistentField implementation made configurable
-
New release of ObJectRelationalBridge O/R mapping tool (16 messages)
- Posted by: Thomas Mahler
- Posted on: April 08 2002 05:24 EDT
Threaded Messages (16)
- New release of ObJectRelationalBridge O/R mapping tool by Anil Patel on April 09 2002 15:59 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Toby Reyelts on April 09 2002 16:04 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Floyd Marinescu on April 09 2002 16:13 EDT
-
New release of ObJectRelationalBridge O/R mapping tool by Dimitri Rakitine on April 09 2002 04:50 EDT
-
New release of ObJectRelationalBridge O/R mapping tool by One Way on April 09 2002 08:18 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Hamdi Yusof on April 09 2002 08:33 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Dimitri Rakitine on April 09 2002 08:43 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Dion Almaer on April 10 2002 04:37 EDT
-
New release of ObJectRelationalBridge O/R mapping tool by One Way on April 09 2002 08:18 EDT
-
New release of ObJectRelationalBridge O/R mapping tool by Dimitri Rakitine on April 09 2002 04:50 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Thomas Mahler on April 10 2002 04:19 EDT
-
New release of ObJectRelationalBridge O/R mapping tool by Paul Watson on April 10 2002 04:37 EDT
-
New release of ObJectRelationalBridge O/R mapping tool by Andrew Laster on April 10 2002 05:26 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Thomas Mahler on April 10 2002 07:29 EDT
-
New release of ObJectRelationalBridge O/R mapping tool by Andrew Laster on April 10 2002 05:26 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Ezhil Jothiprakasam on August 07 2002 07:01 EDT
-
New release of ObJectRelationalBridge O/R mapping tool by Paul Watson on April 10 2002 04:37 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Floyd Marinescu on April 09 2002 16:13 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Haytham A on April 10 2002 10:05 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Haytham A on April 10 2002 10:09 EDT
- New release of ObJectRelationalBridge O/R mapping tool by Hai Hoang on April 10 2002 10:17 EDT
-
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Anil Patel
- Posted on: April 09 2002 15:59 EDT
- in response to Thomas Mahler
Now I think we need a Comparative review of different Open source ObjectRelational Mapping tools.
It will be nice if people can share there experiance with different such tools.
-
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Toby Reyelts
- Posted on: April 09 2002 16:04 EDT
- in response to Thomas Mahler
I'd love to see an open source O/R-based JDO implementation. Frankly, I've been really disappointed by Sun's inability to release their O/R JDO RI. With most other specifications, they've been quite good at releasing useable RI's.
-Toby Reyelts -
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Floyd Marinescu
- Posted on: April 09 2002 16:13 EDT
- in response to Toby Reyelts
Indeed, if we could get a good open source JDO implementation, I would consider using it on TSS. I am surprised that the Castor project doesn't already have one, since they already had a JDO-like product.
Floyd -
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Dimitri Rakitine
- Posted on: April 09 2002 16:50 EDT
- in response to Floyd Marinescu
What is wrong with current Castor implementation? It's not Sun JDO, but still, it is very convinient and super easy to use.
--
Dimitri
-
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: One Way
- Posted on: April 09 2002 20:18 EDT
- in response to Dimitri Rakitine
<quote>
What is wrong with current Castor implementation?
</quote>
FWIW, Castor appears to be stuck on 0.9.x release for more than a year now.
Are you actually using Castor or do you just believe that, in theory, it could be used?
-
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Hamdi Yusof
- Posted on: April 09 2002 20:33 EDT
- in response to One Way
I am a user of castor for about a year now. It has it's limitations but all in all, I found it useful enough to introduce to my team. Combined with unit testing, many of my team's bugs caused by sql/jdbc related code, simply vanished.
Is there any major problems with castor that a user like me does not know of? -
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Dimitri Rakitine
- Posted on: April 09 2002 20:43 EDT
- in response to One Way
<quote>
Are you actually using Castor or do you just believe that, in theory, it could be used?
</quote>
Yes - mostly for XML binding, and JDO on occasion.
--
Dimitri -
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Dion Almaer
- Posted on: April 10 2002 04:37 EDT
- in response to One Way
Its a great tool, used within many projects.
Don't get confused with release numbers.
Just because some vendors jump a large version
number every week, doesn't mean it is even as much
of a jump as a point release for some good tools.
Marketing == version increases ;)
-
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Thomas Mahler
- Posted on: April 10 2002 04:19 EDT
- in response to Toby Reyelts
The OJB has started to work on a JDO implementation.
We have not started to code, but are having a lot of creative discussions.
here is my initial proposal for a OJB based JDO implementation http://objectbridge.sourceforge.net/jdo/jdo-proposal.html
We are currently planning to form a joint venture with the Sparrow project (http://sourceforge.net/projects/sparrow) to speed up the implementation.
- Thomas Mahler
(OJB architect) -
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Paul Watson
- Posted on: April 10 2002 04:37 EDT
- in response to Thomas Mahler
For those interested, there is a good overview (and up to date it seems) of the different mapping tools/frameworks available at http://www.javaskyline.com/database.html
cheers,
Paul.
-
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Andrew Laster
- Posted on: April 10 2002 05:26 EDT
- in response to Paul Watson
How about JBoss integration?
Castor has integration module.
-
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Thomas Mahler
- Posted on: April 10 2002 07:29 EDT
- in response to Andrew Laster
OJB has a JBoss compliant JTA integration.
We are currently working on a complete JCA conformous integration. I hope to get this finished in the next public release.
-- Thomas Mahler -
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Ezhil Jothiprakasam
- Posted on: August 07 2002 19:01 EDT
- in response to Thomas Mahler
Thomas Mahler,
In Object Relational Bridge is there a way to map a 1-to-1 reference where the class for the reference is mapped to the same table as the containing class (i.e., there's no join involved)?
For example there are two classes PATIENT and ADDRESS and I have to persist them to one dB2 table TE_PATIENT_INFO.
public class Patient{
Int id;
String name;
...
...
Address address;
....
...
}
Public class Address{
String city;
...
}
Now if I want to persist the attributes id, name, city to the same DB2 table, then what would be the XML maping(repository.xml) for this scenario
Thanks -
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Haytham A
- Posted on: April 10 2002 10:05 EDT
- in response to Thomas Mahler
with Castor if you have an xml file like this one:
<header1>
<header2>
<field1>
-
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Haytham A
- Posted on: April 10 2002 10:09 EDT
- in response to Thomas Mahler
Sorry for my previous posting that was submitted by mistake.
Ok, with Castor if you have this XML file:
<header1>
<header2>
<field1>
whatever
</field1>
</header2>
</header1>
Your class MUST have fields that correspond to header1, header2, field1. Mostly one does not need this literal mapping.
-
New release of ObJectRelationalBridge O/R mapping tool[ Go to top ]
- Posted by: Hai Hoang
- Posted on: April 10 2002 10:17 EDT
- in response to Haytham A
We've been using Torque for a while now and we're happy with it. Torque is a persistence layer. Torque generates all the database resources required by your application and includes a runtime environment to run the generated classes.
Torque was developed as part of the Turbine Framework. It is now decoupled and can be used by itself.
http://jakarta.apache.org/turbine/torque/index.html