Mohana Priya

Ranch Hand
+ Follow
since Jan 16, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
2
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

Why do I not see Java SE 17 Developer 1Z0-829 in the Pearson VUE site ? Am I missing something here ?

Have been working in Java for the past decade .(Java 7,8,9,11 and 14)
Want to upgrade my certification too.

Mikalai Zaikin wrote:I can tell you you have lots to study.
Java 1.4 and Java 17 are completely different languages  

Thank you Mikalai . I wrote my SCJP 1.4 way back in 2005 . Feels nostalgic coming back to this space . It was javaranch back then.


Planning to take Java SE 17 Developer 1Z0-829 .
I would like to know when this exam was released ?
Will it look latest atleast for 5 yrs ?
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 .
11 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.
17 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%)
17 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
17 years ago