NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
forumer
Joined: 25 Apr 2009 Posts: 4
|
Posted: Sat May 12, 2012 6:06 pm Post subject: Path annotation on a resource without prefixing it with entity package name |
|
|
I realized that I should have posted this help message in this forum; not NetBeans User forum:
NetBeans 7.1, Glassfish 3.1.2 on Windows 7
When I create web services from database the resource classes like xyzFacadeREST have a path annotation which contains the package name of the entity. I can see that this would avoid any name collisions in path. But is it possible to not have it and just have it be the entity name? For example instead of:
@Path("com.testpackage.customer")
it be:
@Path("customer")
One time I removed the package name but that broke the service.
Is there a way to avoid this package name in @Path annotation? This will avoid having a long URI which contains the package name.
Thanks |
|
| Back to top |
|
 |
|
|
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 vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|