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
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
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 User.java :

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


In Role.java :


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


Code :

Role role = new Role();
user.setRole(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.
@PersistenceContext
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 ?



Thanks,
Priya
Hi All,
Im trying to install HiperClipse Plugin for Eclipse 3.
But the link: "http://hiberclipse.sourceforge.net/siteupdate_3 does not work.
I download the file net.sourceforge.hiberclipse_2.0.1.zip and eclipse does not respond.

Please help me.

Thanks in Advance,
Priya
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 mona.priya08@gmail.com.

Thanks,
Priya
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 ??

<LensSelector>
<Astigmatism>
<Question>Do you have Astigmatism </Question>
<Yes>ABCD</Yes>
<No>EFGH</No>
</Astigmatism>

</LensSelector>

--------------------------------------------------------------------------

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>

</input>

Please help me
Hi,

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

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 ApplicationResources.properties 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
hello.jsp.page.heading=Hello World! A first Struts application
hello.jsp.prompt.person=Please enter a name to say hello to :


; Validation and error messages for HelloForm.java and HelloAction.java

examples.hello.dont.talk.to.atilla=I told you not to talk to Atilla!!!
examples.hello.no.person.error=Please 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 ApplicationResources.properties \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..

Regards,
Mohana Priya

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

Thanks,
Mohana
16 years ago