aspose file tools*
The moose likes Object Relational Mapping and the fly likes Jboss 4.0.5GA generating additional column in the DB table for relationships Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Jboss 4.0.5GA generating additional column in the DB table for relationships" Watch "Jboss 4.0.5GA generating additional column in the DB table for relationships" New topic
Author

Jboss 4.0.5GA generating additional column in the DB table for relationships

Abhinav Nigam
Greenhorn

Joined: Mar 20, 2007
Posts: 6
Hi All

I was trying to implement EJB3 using Jboss 4.0.5GA.

While deploying the entity beans it creates an additional column in the DB table with the name of the relationship object. e.g. if User is related to UserDetail, it creates a userDetail column in the User table as RAW(255).

Coz the length of the user object is more than 255 it aborts the transaction.
I increased the size of the column to maximum, then it does not insert the record in the Userdetail table.

What is the concept of the additional column. please suggest. Why Jboss is not using the FKs?

Thanks in Advance
Abhinav
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Well, this isn't a JBoss question in regards tot he App Server isn't doing this. It is the ORM implementation. So I am going to move this to the ORM forum.

Also, please post you mappings for these two objects, that is where it determines how to make the tables.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jboss 4.0.5GA generating additional column in the DB table for relationships