Win a copy of Head First Android this week in the Android forum!

Anna Madhusudhanan Natanagopalan

Greenhorn
+ Follow
since Apr 05, 2004
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 Anna Madhusudhanan Natanagopalan

The problem is in your insert statement.

you mistyped the key word values as value.(second line in your query)

StringBuffer sql=new StringBuffer("Insert into customerTable(");
sql.append("FirstName,LastName,Role)values(");
sql.append("?,?,?)");

Thanks and regards
Anna Madhusudhanan
I am getting error at run time.
Hi,
that depends upon your Database server (Isolation level). It does not allow to delete. if it is then the Entity bean throws Exception.
Hi ,
I am facing a problem in hibernate bidirectional. I have 2 classes TOrder and LineItem.

What is the problem in the xml file. Is this correct? Or do i need to create the seperate xml file ?

for Bi directional i created the Ora.hbm.xml as

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<class name="com.bo.TOrder" table="T_ORDER">
<id name ="orderID" type="int">
<column name="ORDERID" not-null="true"/>
<generator class="hilo"/>
</id>
<property column="userName" name="userName" />
<property column="total" name="total" />
<set name="lineItem" inverse="true" lazy="true" cascade="all">
<key column="orderID"/>
<one-to-many class="com.bo.LineItem"/>
</set>
</class>

<class name="com.hibernate.example.bo.LineItem" table="T_LINEITEM">
<id type="int">
<column name="ID" not-null="true"/>
<generator class="hilo"/>
</id>
<property column="itemName" name="itemName" />
<property column="unitPrice" name="unitPrice" />
<property column="discount" name="discount" />
<many-to-one name="order" class="com.bo.TOrder" column="orderID"/>
</class>
</hibernate-mapping>


Thanks in Advance
Anna Madhusudhanan
Hi,
I want to change the cocoon date detault format(mm/dd/yy) to user defined format(yyyy-MM-dd). but cocoon does not allow. it gives error. Any one can tell how can i check this one and how can i change it?

Thanks and regards
Anna Madhusudhanan
17 years ago
Hi
I have one configuration xml file and one java class. In that java class i have 2 types of method. In one method i am getting the oracle connection using java datasource. In another method i am getting the oracle connection using Oracle datasource. I don't want to hard code in to the class. So how can i achive this one. i don't want to use java datasource in the second method.

Thanks and regards
Anna Madhusudhanan
17 years ago
Hi ,
can u try this line
env.put("java.naming.provider.url",your server ip address);
instead of
env.put( "desisoft.ejb.nameServer1", "localhost:2050" ); this line



Thanks and regards

Anna Madhusudhanana
Hi,
How can i get the calandar from cocoon forms just like javascript calandar?

It is very urget.

Please...

Thanks and regards
Anna Madnusudhanan
17 years ago
Hi ,
In MVC pattern we usally refer
M - Model - DataBase
V - View - JSP /HTML
C- Controller -Servlets
why can't we mention the
Servlets as View and JSP as controller.
Because both the servlet and JSP both are same.

V- View -Servlet
C - Controller - JSP
why can't mention like that?

Thanks and regards
Anna Madhusudhanan
Hi,
What is the difference between the singleton pattern class and static class?
singleton allows only one instatnce and the static class also.
what is the differnece ?

Can any one explain me.

Thanks and regards
Anna Madhusudhanan
Hi Nimo and Roger
Thank you so much for your great explanation.
Thanks and regards
Anna Madhusudhanan.
Hi ,
you have to set the environment settings.
.....<sample code>........
public class Client{
public static void main(String[] args){
new Client().doAction();
}
public void doAction() throws Exception{
InitialContext ctx=getInitialContext();
Object obj= ctx.lookup(jndiName);
home=(YOURHOME)PortableRemoteObject.narrow(obj,YOURHOME.class);
remote=home.create();
}
public InitialContext getInitialContext() throws NamingException{
Hashtable hs= new Hashtable();
hs.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
hs.put("java.naming.provider.url","iiop://127.0.0.1");
hs.put(Context.SECURITY_PRINCIPAL,"j2ee");
hs.put(Context.SECURITY_CREDENTIALS,"j2ee");
return new InitialContext(hs);
}
}
i am working in sun one application server. it is working in sun one appli server. try to execute this one, hope j2ee also support this one.
If any one find any problem or any error/ wrong in this approach , your suggestions are most welcome.
Thanks and regards
Anna Madhusudnanan
Hi
Can any one tell me which is the good book for java design patterns?
Is there any difference between the James W and GOF? I have the pdf copy of James and html page of GOF. Which one is the best?
Thanks and regards
Anna madhusudhanan
17 years ago
Hi,
The isIdentical method returns
Stateless : TRUE when the objects came from the same home.
StateFul : FALSE .
Entity : TRUE when the object refer the same primary key.
Thanks and Regards
Anna Madhusudnanan
Hi,
The isIdentical method returns
Stateless : TRUE when the objects came from the same home.
StateFul : FALSE .
Entity : TRUE when the object refer the same primary key.
Thanks and Regards
Anna Madhusudnanan