• 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 ...
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

Question about Hibernate Aliases

Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mr. Srinivas,

Hope that all is well.

I have a question regarding Hibernate using aliases. I found a problem when trying to use a hash map
to specify an alias that has more than two levels.

For example, if I have a composite id in an object as id of that class type. Then definining the alias is ok as:

However, I haven't found a way to make things work if if the id has itself an id or an element that is composite
and defined in a class.

In other words, the alias seems to work when there are three levels deep since it allows us to combine two of
those levels, and just have one dot which seems to be what Hibernate tolerates. If we are dealing with more than
three levels, then we seem to be limited since we can only combine two levels and have one dot.

Could you share some light in how to deal with this situation? Thanks.

Have a great day.

Best regards,


They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic