omkar prem

Greenhorn
+ Follow
since Dec 17, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by omkar prem

Hi
I want to be a part of the iksacn project
thanks
prem
15 years ago
Any have any solution of this problem
Hi Jai

i have to use mbean with hibernate annotation in my project,basicaly i have used mbean with hibernate core in the same project.which is to be changed on hibernate annotation and mbean. the project is based on struts.

1 i have created har file which contains jboss-service.xml and hibernate-ds.xml


above is my jboss-service.xml



above is my hibernateannotation-ds.xml

This is my POJO class


This is my servlet which Access the database through JNDI



the error which is comming is



i think that ihave to configure the pojo but how i could do because i am getting the sessionfectory object through



and i will configure it through



tell me any solution.

Thank's & Regard's

Omkar Rai
Hi,

i want to know how we can use MBean in hibernate Annotation.

please tell me any example or any tutorial.

Thank's & regard's
Omkar
yes commons-validator.jar is added
16 years ago
Hi,

I am using a struts validation framework in a simple application. when i run the application i got exception

ValidatorResources not found in application scope under key "org.apache.commons.validator.VALIDATOR_RESOURCES"

i have already included the validator plugin in struts-config.xml and commans jars in my class path.

my UserForm class is extending the ValidatorForm.

UserForm


register.jsp


validator.xml


struts-config.xml


where the problem exist i am unable to trace.

Regard's
Omkar
16 years ago
Hi All,

I have to get data from two column of table. My table name is Employee_Det the fields in the table are ID,Name,Age,Deg. the query i am using to fetch ID and Name are as followes

Query qr = session.createSQLquery("select e.id,e.name from Employee_det as e").addEntity("e",empl.class)

but this query gives an error. I have to do this by using addEntity() method



Prem
Hi,

I want to use Union clause(in native query) in hibernate.How i can do this.

Regards
Prem