In the documentation there are two classes in my case there is one class but internally iam joing two tables
How will i specify one to one relationship
Type: Posts; User: lthomas; Keyword(s):
In the documentation there are two classes in my case there is one class but internally iam joing two tables
How will i specify one to one relationship
Answer to the Question:
Following are the results
1 Liju 20/01/2007
2 Liju 20/01/2007
3 Thomas 20/01/2007
4 Liju 20/01/2007
What results are wrong?
Yes the results are wrong
1 Liju 20/01/2007
2 Liju 20/01/2007
3 Thomas 20/01/2007
4 Liju 20/01/2007
same dates are repeating again....the results should be:
1 Liju ...
Iam having problem in joining two tables in hibernate using hbm.xml file.
When Iam joining result are appearing but the values are wrong for eg:
I have a table abc and xyz in the database
abc...
I want to declare a date variable in applicationContext file so that i can retrieve the date in a java class. this is basicly for the Quartz Scheduler.
A user wil be entering a date in a...
I want to specify a date in applicationContext.xml file (date can be changed any time) and I want to call that same date in java class.
Is there any way to do that?
Iam typecasting it to integer then also it is giving me same error.
No can you tell me how to that in eclipse
I did this :
public boolean getHitHistory() {
boolean status = false;
FnuHitHistory fnuHitHistory = new FnuHitHistory();
try {
String stat = "select count(*)...
Can I execute simple sql query in Hibernate fro eg:
String stat = "select count(*) count,fnu_id,trunc(hit_timestamp) hit_timestamp from fnu_hits group by fnu_id,trunc(hit_timestamp) order by...
Gotcha!!! Thanks
I have a method where i Iam returning (max)date:
public Date hitHistory()
{
FnuHit fnuHit = new FnuHit();
String stat = "select max(hitTimestamp) as hitTimestamp from FnuHit";
List...
Thanks it worked i have Updated the jar files. and I also got my results
I am a Using Quartz Scheduler for the first time and i was using http://www.springframework.org/docs/reference/scheduling.html as a tutorial
The question :
Is the code correct?
I have hbm.xml file where Iam joining two tables.
Thanks it worked!!!
this is the code for UserServiceImpl.java :
The line giving error is marked as bold
package com.palm.fnur.service.impl;
import java.util.ArrayList;
import com.palm.fnur.dao.IUserDAO;...
ERROR - Context initialization failed
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at...
Thanks!!!!!
Is this correct?
String stat = "FROM FnuLookup where type=? and id =?";
List result = getHibernateTemplate().find(stat, FnuConstant.HTTPSTATUS,httpStatusid);
Iam getting error.
How will...
yes i was creating a new ApplicationContext on each request but now I have changed it
I have created a new class called context.java for applicationContext.
package com.palm.util;
import...
you mean to say that to place the applicationContext.xml file to WEB-INF/classes/?
So do I have to write like this:
ApplicationContext context = new...
Can we move applicationContext.xml from src to WEB-INF?
I have moved but I am getting Error :
Failure invoking listener method 'public void...
Thank you Karl!!!