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

Prathamesh Gaddam

Ranch Hand
+ Follow
since Feb 18, 2008
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 Prathamesh Gaddam

Hi,

Feeling good making a visit after long time. Here is what I'm willing know:

1. Are there any other implementations of JSR-299 CDI excluding Weld?
2. Any specifications or de-facto way of application design (design patterns) using CDI? [Willing to use JSF 2.0, JPA with Hibernate & Tomcat + Maven 3.0]

Thanking for the same.

In case, the post is not under the related category please let me know or do the needful.
Thank you Ulf, You are right! I'm able to access it. The folder is password protected so I'm going with the drive map option to access with Java.

Please assist as how can I proceed with/in java to find/fetch/delete mapping of shared network drive. http://stackoverflow.com/questions/208839/how-can-i-mount-a-windows-drive-in-java/1559702#1559702 link will describe my issues.

12 years ago
Thank you Ulf. I had checked it earlier. However I didnt found the user/developer guide to proceed, for a newbie. I'll give one more try.

Rob, thank you for the tip. I tried to check it as \\someIPAddress\\C$. And it gave 'Network Not found' message. Is it the right what m I doing?

However Rob, I need to acces the remote system over internet or the network connected by VPN. I guess the clue might not work. Further we will not be given admin rights either our nor remote side.

12 years ago
Dear Ranchers,

I'm not sure whether its the right category to post this topic. Regret any inconvenience caused.

Presently we are accessing remote sytem with Windows-RDC (with credentials and IP-address) and accessing the filesystem and access the files. However we need to do it programatically to list the files from a specified directory with java.

How to proceed. Note, the directories are not shared nor they are network drives. Googling, the options (RDC, PuTTY, JRDesktop etc) are confusing me.

Any clue/guidance will be very helpful. Thank you in advance.
12 years ago
Dear Ranchers,

I'm willing to define a map with key as methodName and value as related 'java.lang.reflect.Method'. However the problem is, to get the methods of the class member -[which should/is an user defined class/object].

e.g:


So, how can I solve:

1. Get methods dynamically [java.lang.reflect] of class B [eg: class/es which has specific annotation '@Entity'], within/from class A?
2. Both the classes has same field type & name 'String value'. How to add/get it to/from my map collection?

Note: Using HashMap<String,Method>.

Thank you in advance!
12 years ago
Thank you Peter, for the clue! However, presently any plugin available for Eclipse, to track method invocation?


Dear Ranchers,

Request: If this post is not realted to posted category, please do the needful. Regret any inconvenience casued.

Is there any way I can log or print the list of all the invoked methods, in the invocation order, from main() onwards? Any possibility in debug mode, without modifying the source code (with print statements)? And, the invocation order is the normal execution; not the exception based stacktrace.

I'm using Eclipse IDE 3.3v.

Thank you in advance!
Dear Ranchers,

I have downloaded spring-framework-2.5.5-with-dependencies with doc and samles. And updated the SpringOne IDE in Eclipse.

1. Now how to configure Spring Framework jars into Eclipse? There is no option in Windows->Preference->Spring option for it.

2. Further w.r.t http://www.realsolve.co.uk/site/tech/spring-getting-started.php the build is failed with 59 errors. I'm unable to get the complete stacktrace from command prompt. By the way is it necessary to buils the Spring Jars?

3. How to configure jars automatically, on File->New-> Spring Project as project setting?

Note: I can add as external jars, in spring project.

Thank you in advance!
Yes! I was expecting something like this.

1. The sample code worked ! Thank you, Reehan! However, the existing data from the table (dbo.Disc) was deleted. Why? I used <property name="hibernate.hbm2ddl.auto">update</property> for schema generation.

2. I guess, the inheritance strategy used in the given example is Table-per-ClassHierarchy(<subclass>). So there should be a new table for each new hierarchy of subclasses extended from parent-class/sub-class. Please correct; if wrong and quote towards it with any relavent example!

Thank you once again for your patience, Reehan!

Warm regards
Thank you, Reehan !

I guess there might be a mis-understanding. No Problem !!

I have already subclassed/extended(AudioDisc.java & VideoDisc.java) from the super-class(Disc.java).

Now I need to further extend from the sub-class (AudioDisc.java), and code the mapping file. How to map these extended sub-classes? And using three basic inheritance/polymorphism strategies.



Please feel free to post reply, for any elaboration.

Warm regards!
Hi Ranchers,

Sorry for the posting the topic, twice!

From https://coderanch.com/t/439786/Object-Relational-Mapping/java/polymormsim-related-demos

2.1. Table per class hierarchy .....



I need to check the how schema will be generated for subclasses extending the sublass (using "hibernate.hbm2ddl.auto"). In simple, I want to extend AudioDisc class as:


In Disc.hbm.xml
How to code the mapping file?
Can we use multiple discriminator in a <class></class>? Or a discriminator in the <subclass></subclass>?
Can we have <subclass/> within <subclass></subclass>? How can i use this features?
Or can I use, already defined <subclass/> as a <class>? For example w.r.t above example can we use as <class name="AudioDisc">as:



Thank you in advance!
Hi Ranchers,

Bhagat, your example was very helpful to workout my first demo with inheritance. Thank you for it!

2.1. Table per class hierarchy .....



I need to check the how schema will be generated for subclasses extending the sublass (using "hibernate.hbm2ddl.auto"). In simple, I want to extend AudioDisc class as:



Towards Disc.hbm.xml
How to code the mapping file?
Can we use multiple discriminator in a <class></class>? Or a discriminator in the <subclass></subclass>?
Can we have <subclass/> within <subclass></subclass>? How can i use this features?
Or can I use, already defined <subclass/> as a <class>? For example w.r.t above example can we use as <class name="AudioDisc">as:



Request: I regret if any question sounds crazy/weired, logically!

Thank you in advance!
Fantastic ! Thank you Mr. Jacob Orshalick!

I'm not sure what you mean by "template type framework", but Seam is an integration framework that gives you choice in your presentation layer. Support is continually being added in this area and Seam 2.1 now supports Wicket.



Prior to our reply, I perceived Seam as a Frameworks which helps other frameworks/technologies (from each of MVC layers) to glue in a better way, around Java world with some other competiting technologies. Now, Seam means a framework with Pluggable Presentation Layer. Please correct/clarify, if wrong.

Speaking from experience, I have developed a number of complex enterprise applications with Seam and have yet to come across a situation that I could not handle by either taking a different approach, or extending the functionality of Seam in some meaningful way.



I meant, suppose I want to use the tool Seam-Generate-Entites for reverse engineering from DB. And I need to configure (have generated) the UI components specific to (customized) column of DB tables or their datatype, instead of default. And much more. (I'm not sure whether it forms a part of framework) Is such feasibility provided by Seam for developers? (Why every works/design to be loaded on experts/designers?)

Warm regards,
12 years ago
Hi (only to) Ranchers!

Welcome Authors! I feel it an opportunity of opportunities to have you here, to find in-&-out about Seam.

About me: I begined with Seams directly from core java. And getting into things simultanesouly part by part.

Confusing: As per books, posts and forums The Seam is:

# Framework
# Application stack
# Glue between JSF and EJB (yet to figure it out)
and else

Is Seam an template type framework where we can configure any, each of the MVC technologies with Java?

Seam is too easy, to get the basics. Because, I have generated the basic CRUD application with Seam and it was so easy (apart from basic settings/configuration) that at didnt required to read the EJB, etc. And lucky issue, needs digging and digging to depth to find the cause. What about it?

How and what way Seam intercept persistance/model? Hibernate/JPA/any other?

Any simplicity towards enhancement of the Seam Framework, from developer's perspective? Any easy way to glue/define custom enhancements for Seam, say as customized Seam-Generate-Entities?

To what extend/depth Seams can be integrated with Springs (yet to look into it) ?

Thank you in advance!
12 years ago
Thank you very much, Rahul!

That mean, the constraints are to be imposed on DB (for exisiting tables) and hibernate will not restrict/constraints itself, for such tables. Please correct ant of my mis-interpretation.

Yes! I have not imposed any such (unique) constraint on my existing tables on SQLServer2000.

How can place such constraints (for unique names) on tables and any way to pass SQL exceptions to hibernate or its automated?