• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Hibernate mapping issue

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have very limited hands on Hibernate experience, so please be kind.

I have a table
I_Report integer
I_Remark_ID integer
C_Remark_Type char(2)
T_Remark varchar(80)

The CURRRPT table connects to a Report table via the I_Report field and
the I_Remark_ID is a generated number as there will be many rows.

I have an object for the Report Table and setup 2 objects for the CUrrrpt.
1st object extends the Report object and contains a List of the 2nd object -- Remarks object which contains i_remark_id, c_remark_type, t_remark.

The issue I am having is that my Hibernate mappings for these objects.
I can add data okay and read it. The issue comes upon deletion as I have 2 pointers looking at the same data and get an already updated error. Not sure how to handle this situation and any input would be appreciated.

[ Edited to use code tags - Paul Sturrock ]
[ October 31, 2006: Message edited by: Paul Sturrock ]
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic