Anatoliy Martsenyuk

Greenhorn
+ Follow
since Aug 15, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Anatoliy Martsenyuk

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;
}
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.