Hi Evan, I think that part is exactly what is confusing me. The invoking of the DAO's insertion method within my POST endpoint. I'm not entire sure where that goes and i'm not exactly sure what that code is specifically. Is the DAO's insertion the create method in the AdbstractDAO part of the docs. The other point I am unsure about is the where to put this call. Like i stated originally I have a main class that runs my hibernateApp, the info that i want to insert is created in the main class? Lastly is the post endpoint where i'm suppose to use @POST and @UnitOfWork.
On Monday, January 15, 2018 at 4:28:05 PM UTC-5, Evan Meagher wrote: > > +dropwizard-user, dropwizard-dev to bcc > > Hello Matt, > > It sounds like your question has more to do with Hibernate than > Dropwizard. If you've configured the dropwizard-hibernate module > <http://www.dropwizard.io/1.2.2/docs/manual/hibernate.html> properly and > are invoking the DAO's insertion method within your POST endpoint > implementation, then it should work. If your DAO isn't properly INSERTing > records into the database, then perhaps it's not configured properly. > > In order to help you, it would be helpful to have snippets of the relevant > portions of your application's configuration and any code relevant to > Hibernate. > > Best, > > On Mon, Jan 15, 2018 at 11:26 AM, Matt <[email protected] <javascript:>> > wrote: > >> >> >> On Monday, January 15, 2018 at 2:20:36 PM UTC-5, Matt wrote: >>> >>> Hi All, >>> >>> I am new to DropWizard and how to use it properly. Im not sure where my >>> confusing comes from but this is where i am. I have a main application >>> class that calls the hibernate class that goes through and sets up a >>> Testing, TestingDAO, and TestingResource classes. I have the proper >>> configuration as well. Lastly everything connects properly and runs fine. >>> My question is how do i insert into my database, i have seen @POST and >>> @UnitOfWork but am unsure where to use them. All i want to do is insert one >>> string variable into the databse which is created in the Main App class. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "dropwizard-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Evan Meagher <https://evanm.website> > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
