This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

authenticating User!

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Leonardo Terrao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok!
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic