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

Question about Hibernate Aliases

 
Greenhorn
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,

Rudi



 
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
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic