@ResourceContext Dropwizard

2016-11-04 Thread ervin . c . wu
Hey I am using your sample dropwizard(version 1.0.0) code and I want to use @ResourceContext for calling resources methods in another resources methods. I imported javax.ws.rs.container; and here's some sample code: @Context ResourceContext rc; LAResource laresource = rc.getResource(LAResourc

how to create multiple tables in dropwizard?

2016-10-18 Thread ervin . c . wu
I am trying to create multiple tables under one database in dropwizard using the example from dropwizard. here's a sample of my code. I get this error: org.hibernate.MappingException: Named query not known: Is there an example that has multiple tables or do I have to create a new databse. p

Creating another table in dropwizard causing error ?

2016-10-18 Thread ervin . c . wu
I am using your example provided on github, and I want to create another table called LearningAssistants. I followed the example code closely and modify the config.xml to create the LearningAssistants table. However I am getting this error: ERROR [19:49:24.930] [dw-18 - GET /LA] i.d.j.e.Loggi

PUT request

2016-09-26 Thread ervin . c . wu
I am currently using your dropwizard-example (latest version) as a guide for my project. I was curious on how to send put requests, so that the resource gets updated in the database. I was trying to created an update method in the PersonDAO class but was having trouble finding documentation on