• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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,


There's a hole in the bucket, dear Liza, dear Liza, a hole in the bucket, dear liza, a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic