Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Abhinav Nigam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic