sarmaP lolla

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

Recent posts by sarmaP lolla

Hi Craig,

I have been looking around for updates on web services. I see the Spring web services, Soap web services and also RESTFUL web services. Did you book cover which ones should we use under what circumstances? Are soap and RESTFUL web services are getting outdated? what is the future of Spring web services? Can you please explain us?

Thanks,
Sarma
13 years ago
This is what help says....
DefaultSchema: This option sets a schema or tablespace name used to qualify unqualified tablenames in generated SQL.

so did you define your mapping file like shown below? In that case this overwrites your default....

<hibernate-mapping default-lazy="false">
<class name="mypackage.domain.Mytable" schema="MY_SCHEMA" table="MY_TABLE">

Also looks like you can not access DefaultSchema from the config file...

Sarma

If you are writing the native SQL then hibernate just executes that sql... it would not bother to look at the schema.

Sarma
Yes. you need to.

We used NetBeans.

NetBeans has reverse engineering technique you can use. It takes the database connection and creates the HBM files and domain objects for you. It takes care of the relationships and also the multi-primary key issues. You can also go for annotation approach. Why go XML way? It is more easy to have the annotations and the domain object in the same file.

Sarma
Hey We defined the class as

<mapping class="gov.aaa.domain.Assignment" />

Also our file is copied to the WEB-INF folder when we are deploying it to server.

Sarma
Babu,

What did you define for PRODUCT_CODE = ? AND CODE_TYPE_ID= ? Can you pose more of your PRODUCT class?

Sarma
Do you have any primary key on this table? Doesn't look like.

Also did you make sure that you are actually sending values for the first name etc.. ?

Also double check your hibernate configuration properties for auto commit.

Sarma
Any one used this configuration? Does facelets work with OC4J 10.1.3 ? We are using IceFaces and all our JSP includes are static. We want to try facelets.

Thanks
Sarma
14 years ago
JSF
remove the line . That should be suffcient. What ever the value you assign will be used for the Id.

Let me know if that helps.

Sarma
Srinivas,

I have been using Hibernate for the past 3 or 4 years and I have used both annotation approach as well as XML configuration. I have used NetBeans reverse engineering techniques for getting the domain objects. Do you think this book still helps for people like me or this is only for beginners?

Thanks,
Sarma

You can not use this statement.


The reason is u.name is a String. You are no longer getting a User1 object from the query. If you still want to work with User1 objects then you need to use transformation as shown in the example below.



- Hope this helps.
Sarma
Did any one make any money on any of your apps? Just curious...

Sarma
14 years ago
iOS
I guess you have to spend that $1000 to 2000 to create your first app... This is on top your iPhone and iPad....

Sarma
14 years ago
iOS
When you are selecting individual properties you need to either transform it to domain object using transformation or you need to access the value by typecasting it Object[]. Try the following code.


- Sarma
Srinivas,

We are planning to migrate a legacy application from Oracle forms to Java/J2EE and we are planning to use Hibernate with Spring. We have lots of existing stored procedures. Is there a nice way to call these stored procedures from Java code? Also these stored procedures might return a cursor. How to implement these? Can your book deals with these?

Thanks,
Sarma