Win a copy of Spring Boot in Practice this week in the Spring forum!

Mohana Priya

Ranch Hand
+ Follow
since Jan 16, 2005
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mohana Priya

Issue : JPA cascade = CascadeType.ALL inserting 2 records in child table .

In :

@OneToOne(cascade = CascadeType.ALL , mappedBy="user" , fetch=FetchType.EAGER)
private Role role ;

In :

@OneToOne(cascade= CascadeType.DETACH, fetch=FetchType.LAZY)
@LazyToOne(value = LazyToOneOption.NO_PROXY)
@JoinColumn(name="user_id", referencedColumnName="user_id"),
private User user ;

Code :

Role role = new Role();
dao.update(user); // This is inserting 2 records in Role table .

Why is this happening ?
How to enable SSL for REST services im tomcat ?

Please help .
10 years ago
If insert of Child Table 2 fails ,Insert of Parent Table 1 and Parent Table 2 should be rolled back.
Hi ,
I am using Hibernate Session injected in my EJB3 Session Bean code for my database operations.
private Session session;

I am trying to put the below operations inside a transaction block.

If any one of the inserts fail ,say If insert of Child Table 2 fails
,I want the insert of the Parent Table alone to be rolled back .How would I achieve this in my code ?
Hope my query is clear.
Hi All,

Will the MZ Study Notes on 5.0 alone suffice for clearing SCBCD 5.0 ?

Hi All,
Im trying to install HiperClipse Plugin for Eclipse 3.
But the link: " does not work.
I download the file and eclipse does not respond.

Please help me.

Thanks in Advance,
Hello Ranchers ,

I need Mikalai Zaikin's Study Notes for SCBCD 1.3 in pdf format.If any of you have ,Please send it to my mail id

Congratulations Manish .. All the Best for your future exams.
15 years ago
How to assign a value from xml to a text field in xsl ??

<Question>Do you have Astigmatism </Question>



None of the below works :

<input type="text" name="question" size="100" value="<xsl:value-of select='Question'/>">

<input type="text" name="question1" size="100">
<xsl:attribute name="value"> <value-of select="Question"/></xsl:attribute>


Please help me

Accessing the messages in jsp .
<bean:message key=""/>

Dont know what exactly solved the problem.It is working fine now.

Thanks for the replies,
Mohana Priya

SCJP 1.4 (95%)
SCWCD 1.4 (86%)
15 years ago
Hi All ,
I am trying out my first Struts Application

This is my file :

; Application Resources for the "Hello" sample application
; Application Resources that are specific to the hello.jsp file

hello.jsp.title=Hello - A first Struts program World! A first Struts application
hello.jsp.prompt.person=Please enter a name to say hello to :

; Validation and error messages for and told you not to talk to Atilla!!! enter a <i>PERSON</i> to say hello to!


I am able to get the Validation and error messages .

But problem in displaying ( bold ones ) using bean:message tag in the page.

I have struts-bean.tld in WEB-INF folder and <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> in my jsp file .

I have given an entry in struts-config.xml as

<message-resources parameter="ApplicationResources"/>

And placed the \WEB-INF\classes .

Am I missing out something ??

Thanks in Advance,
Mohana Priya
15 years ago
Hi Puja,
Dont ever get your confidence level lowered with the mock exam score.Even I scored very less in HFSJ mock ,but I managed to clear the exam with a score of 86%
An Absract class with concrete static methods alone need not be sub-classed in its life time .Am I right ?
Congratts Srikanth !!! Thats really a very good score..

Mohana Priya

SCJP (95%)
SCWCD (86%)
15 years ago
Hi All,
What changes our status in the javaranch from Green Horn to RanchHand member ?

16 years ago