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

how to use @hibernate.primitive-array xdoclet-tag

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all!

Did anybody use hibernate xdoclet-tag @hibernate.primitive-array? I have not found any real example in the web.
It is necessary to map such a field:

private double[] units;
....
public double[] getUnits() {
return units;
}

public void setUnits(double[] units) {
this.units = units;
}

May be exist the other way to do this?
Thanks in advance for any help.
 
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you look into the Tag Ref, probably you may get detail idea.XDoclet and XDoclet Hibernate
 
Anatoliy Martsenyuk
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot. I've found the solution.

/**
* @hibernate.primitive-array table="Units"
* @hibernate.collection-key column="parentId"
* @hibernate.collection-element column="val" type="double"
* @hibernate.collection-index column="id"
*/
public double[] getUnits() {
return units;
}
 
yeah, but ... what would PIE do? Especially concerning this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic