This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!

saranga rao

Ranch Hand
+ Follow
since Apr 24, 2007
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 saranga rao

Hi guys

WHile using the IFrame and call the struts action make sure "/" should not be use..

Here is the code where i used .. pls go through this..

In JSP page : -

<iframe style="width:380px; height:150px; border: groove;" frameborder="1" id="eventinfo" src="viewEventBasicView.do" >

</iframe>

in struts config

<action path="/viewEventBasicView"
type="com.micros.portal.backOffice.forecasting.MyForecastBasicViewEventBasicDispatchAction"
scope="request"
name="MyForecastBasicViewEventForm"
validate="false">
<forward name="showbasicevent"
path="/WEB-INF/backOffice/forecasting/myForecastBasicViewEventInfo.jsp"
contextRelative="true" />

</action>

=============
<form-bean name ="MyForecastBasicViewEventForm"
type = "com.micros.portal.backOffice.forecasting.MyForecastBasicViewEventForm"/>
10 years ago
Hi

This will come under the DAO package...that is if you are using any spring and hibernate package....then using hibernateDaoSupport .Then it no need to use the hibernate configuration files......

go through the spring and hibernate arch.


Regards
saranga
hi Paul

Primitives cannot have null values, so don't map a nullable field to a primitive type....

if for examples there is a column called age-between = "string" (19-20)with default is "null" then also it will throw....... if you keep blank..then defently it will throw...the error
Hi,

This is where hibernate stop think............

Error will like to be CGILib error .........in hiberante...........

the temprory solution is dont leave the column null insert the value like '0' or any value.......and manpulate in java code...............

I have got like this type of error.............but this is one of disadavantge.......database can keep null value...also......but hibernate will not allow.....
hi


between, in, and like:


session.createCriteria(Accommodation.class)
.add(Expression.between("availabilityDate",
startDate,
endDate))
.list();

session.createCriteria(Country.class)
.add(Expression.like("A%")).Order.asc("availabilityDate")
.list();

favoriteOwners = new ArrayList();
...
session.createCriteria(Accommodation.class)
.add(Expression.in("owner",
favoriteOwners))
.list();
Hi

Have you executed the query in the database..?


Regards
saranga
HSQL query = select InvTxn.ivStr2,
InvTxn.ivAttdtls,
trunc(current_date()-InvTxn.ivDuedate),
InvTxn.cstHdr.csName,
InvTxn.comp_id.ivId,
InvTxn.comp_id.ivDate,
InvTxn.ivDuedate,
InvTxn.ivTlamt,
InvTxn.accrTxn.arOutamt,
InvTxn.cstHdr.csPayr,
CmtsLog.cmAction,
CmtsLog.cmText,
InvTxn.ivCurr,
StsLog.stsHdr.stName,
InvTxn.cstHdr.csId
from InvTxn as InvTxn
LEFT JOIN InvTxn.stsLogs as StsLog
LEFT JOIN InvTxn.cmtsLogs as CmtsLog
where
InvTxn.enttyHdr.enId IN (4)
and InvTxn.ivClosed = 0
order by
InvTxn.cstHdr.csId,
InvTxn.ivDuedate



hi actually have specified 2 tables but here giving an alias name.............right...........
Hi


can You be more specific (more explanation the things)

or give the table structure of the two table and give what you require........
Hi,

This is problem of the system authentication... if your system has got the
admin privileges then use this ..........there is no code problem.......

You can also use

rogergraham@IPADDresss (like 192.168.100.13)(then also it will not work)


privileges.............prblm....
Hi,

if table A and table B

then

List lst = (Query)createQuery("from A as a B as b where a.id= b.id").list();

this is equi join

or

left join use the same query like this in another way

you can also use createCrietria()with different stratgey
Yes

It depends on the DB driver where you have specified in hibernate properties file
hi,

if You generate the DDL of then You could have found the sql statments will be drop database with teh create tables .........with the insert and finally it si updata


regards
saranga
Can You give some examples

please not Without ProxyInteceptor


regards
saranga
Hi,

Is any body can help me:

i would like to know whether it is possible to hiberante mapping file of type interface....

or

for interface is it possible to create an hibernate mapping file


Regards
saranga
Hi,

It is not finding the path of <mapping resource="Tarifa.hbm.xml"></mapping>

get the path and specify ...............the project path