• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic