This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes authenticating User! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "authenticating User!" Watch "authenticating User!" New topic

authenticating User!

Leonardo Terrao

Joined: Oct 13, 2011
Posts: 15
Hello everyone!

I'm trying to make a User Authentication for a small project in GWT, I'm new in this business! I'll post to the point where I am and I wish someone would help me to keep me!

All information is welcome!
Thank you!

I'm using Hibernate with MySql database.

my Serice

my Service Async

My ServiceImpl. Here I am struggling to finish the code ...

Any idea how I can finish this code?

Thank you!
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10747

You will need to query the DB if the given username+password combination is valid. If yes, you will need to populate the AutenticaLogin object and return it back. You will also need to figure out how you plan to let the UI know that the credentials are wrong. Return a null object or throw a custom ValidationFailedException or something.
Your question is not related to GWT really. I will move it over to the ORM forums for you.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Leonardo Terrao

Joined: Oct 13, 2011
Posts: 15
Thank you!

My User interface I've ever ridden!
Sorry for the level of the questions but I am an adventurer! Everything is new for me Java, Hibernate and GWT.
This query is valid and return?
jQuery in Action, 3rd edition
subject: authenticating User!
It's not a secret anymore!