Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Spring /Hibernate Design Question

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Our web developer recently left the company, and I have been handed the task of updating parts of his CMS system. (my programming skills are a bit rusty so you may have to bare with me)

Currently the system uses Spring and Hibernate (also other bells and whistles not important here). It builds page based on "News" objects(the text on the page) and "Media" objects (all images and multimedia).

I have to add the ability to have multi-lingual support. My current plan is to have central News item in one table then have a "Translation" table in a one-to-many relationship.

Here is where my lack of knowledge really shines, the way I understand it I need to Class for "Translation" and the relevant mappings, Then indicate that the "News" item get/set a "translation". Then presumably I can at the "translation" on the resulting jsp side with model.transObject.column (?)

Am I on the right track here or am I completely lost?

Cheers
Rob

P.S. Any tutorials or examples you could suggest would be greatly appreciated. I havent played with java for a few years
    Bookmark Topic Watch Topic
  • New Topic