DB Importer

HiberObjects

Download

Order

Forum

It is currently Wed Apr 23, 2014 1:12 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Use in a web service?
PostPosted: Tue Mar 29, 2011 9:44 am 
Offline

Joined: Tue Mar 29, 2011 9:40 am
Posts: 3
Hi!

I've used this great tool to design a database and that works well. But I have to expose the classes through a web service.
Problem is, that java.util.List and java.util.Set are not
part of JAX RPC and I get complains about serialization when trying to create a web service in Eclipse.
The generated code of a class Company to retrieve the employees is:
public java.util.Set<Person> getEmployee() {
return this.employee;
}
Is it possible to change this to s.th. like

public Person[] getEmployee() {
return this.employee;
}

I'm a bit new to Hibernate, UML, web services and Eclipse. If anybody could point me into the right direction of how to solve this problem, I would be very thankful.

Christian


 
 Profile  
 
 Post subject: Re: Use in a web service?
PostPosted: Tue Mar 29, 2011 9:51 am 
Offline

Joined: Tue Apr 10, 2007 4:42 pm
Posts: 619
Location: Uppsala, Sweden
Hi,

I'm afraid such detailed configuration of the generated code is not possible (yet). But you can modify the generated methods manually if you remove the @generated tags.

/Lars


 
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2002, 2006 phpBB Group