Swapnil Dharane

Ranch Hand
+ Follow
since Apr 22, 2012
Swapnil likes ...
Eclipse IDE
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
11
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Swapnil Dharane

I am going to to return error code for invalid login attempt
5 years ago
Hello Guys,
We are designing a web application that uses AngularJS as front end and spring REST as back-end.User authentication will start at Angular JS side and will be further handled by Spring security module.My confusion is at spring security side.As login mechanism will be handled by Angular JS,I can't use spring(security) login mechanism.Due to this,I assumed that I should create custom entry points for sping security.Is this a good Idea? Please suggest.

Thanks in advance
Swapnil
5 years ago
Hi Guys,
We are building a web application which has Angular JS based front end and Spring REST based backend. I m trying to add spring security (user authentication) flow to REST APIs using form-based login mechanism.Can anyone tell me whether its a good idea? If not,please suggest better ways for the same.

Thanks in Advance
Swapnil
5 years ago
Can you please repost the link for hibernate made easy source code? the one that has been shared previously seems to be broken..
Hi Guys
I have two tables,Theater and Shows, which are joined by one to many mapping.I m trying to perform collection persistence as follows.


xml mapping


I m getting below logs(adding relavent logs here) and an IntegrityException



The problem is,newly generated theaterId is not being used when new show is being added.
Can anyone tell me why this is happening?
Hi Guys
I am trying an example for one to many mapping using below code:


Here,for the first round of execution,3 components are getting inserted with componentId 0,1,2 .But While trying to reinsert, increment operation starts at 0 itself and a 'MySQLIntegrityConstraintViolationException' is thrown.
I have two guess about this case:

1.increment generator is starting at initial position for every execution
OR
2.insertions in Components table are not being commited.
Can anyone help me figure out the real problem
I do know abt SingleThreadModel. But would l would like to know abt single threaded servlet(Although it seems to me that both mean the same thing).
5 years ago
Hi Bill,
I was referring to the first situation i.e. thread pooling managed by servlet container.I was wondering whether there is any specific term for the same?
5 years ago
Hi all,
Is there any specific name for servlet's multi threading mechanism? I mean any technical term for it.
5 years ago
So literal pools are created for all Numeric values (as integers,byte,short,float,char etc.. ) or only for integers?
5 years ago
Hi guys,
Does JVM create literal pool for all immutable objects(that includes user defined immutable objects as well)?
If not, why not?
5 years ago
Got it..
Thanks Jesper
5 years ago
Hi Guys
Attaching a sample code here..

Here any static member(here,normalStaticMember) can be accessed using one of the instances of the class(although its not at all a good practice.But Its possible).But in case of enums which are declared static explicitly,its not allowed by compiler(marked above as not compiled).
Can anybody please explain this behaviour??
Thanks in Advance..
5 years ago