aspose file tools
The moose likes Object Relational Mapping and the fly likes how to use @hibernate.primitive-array xdoclet-tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "how to use @hibernate.primitive-array xdoclet-tag" Watch "how to use @hibernate.primitive-array xdoclet-tag" New topic
Author

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

Anatoliy Martsenyuk
Greenhorn

Joined: Aug 15, 2006
Posts: 2
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.
Ghulam Rashid
Ranch Hand

Joined: Jan 14, 2002
Posts: 278
Did you look into the Tag Ref, probably you may get detail idea.XDoclet and XDoclet Hibernate
Anatoliy Martsenyuk
Greenhorn

Joined: Aug 15, 2006
Posts: 2
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;
}
 
 
subject: how to use @hibernate.primitive-array xdoclet-tag
 
Threads others viewed
My loop isn't working
compare variables of an object
I keep getting an error message in my code
create a js array on the server-side
Why is my type unexpected? required variable found value
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture