Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Object Relational Mapping
how to use @hibernate.primitive-array xdoclet-tag
Anatoliy Martsenyuk
Greenhorn
Posts: 2
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 278
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Did you look into the Tag Ref, probably you may get detail idea.
XDoclet
and
XDoclet Hibernate
Anatoliy Martsenyuk
Greenhorn
Posts: 2
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
I keep getting an error message in my code
Spring mvc request mapping for POST JSON request not working.
Need help with Car Inventory Program part 3
How do I create a Data folder in my C: Drive using my Java program
How do I create a Data folder in my C: Drive using my Java program
More...