Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

dhaval yoganandi

Ranch Hand
+ Follow
since Jun 06, 2009
dhaval likes ...
Android VI Editor Linux
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by dhaval yoganandi


I've required some mappings where I've three fields in composite key. One of the three field is foreign key to some other table. Now, I want cascade insert and update on that foreign key (plus composite key) field.

Here, field2 is foreign key plus composite key. Now I want it to be cascade insert and update. How can I do that?

Thanks in advance.

Terence Parr wrote:

dhaval yoganandi wrote:I was thinking internal languages of companies as DSL.

By internal, Martin Fowler means written with in the constraints of another language. More like a library than new syntax.

If its library kind of thing. Then I was in wrong impression about DSL. I was talking about the internal language implemented by using the custom parser/interpreter. Thanks Mr. Terence for info.

Dang. I thought I was getting the hang of it. So are you saying that when creating a DSL in Java we need to pass one or more Strings to an interpreter/renderer so that we're not using the Java syntax?

sorry to interrupt. But if that is the case then I was in wrong impression about DSL. I was thinking internal languages of companies as DSL.

Burk Hufnagel wrote:

dhaval yoganandi wrote:Then the question is why they prefer DSL ?

Does that make sense?


Yes it does. But, what about the new features and flexibilities we can get in GPLs? And I think it is very difficult to add new feature,flexibility and performance tuning in DSL architecture, unless and until it is well defined.

GPL = General Purpose Language

- Dhaval.

Burk Hufnagel wrote:Dhaval,

Sorry about misspelling your name (I went back and edited the post to correct it) I guess I wasn't quite awake when I first replied.

I think DSLs and proprietary languages can be a good thing for a company, but at the same time they definitely have a cost. Other than previous employees, you won;t find people who already know the language you're using so you have to spend the time and money to train each new developer. In addition, some excellent developers won't be interested in the job because the knowledge and skill they gain with the proprietary language is mostly useless to other potential employers. Another concern is that after training your new hire, it may be that they aren't very good with the new language because the programming model just doesn't fit with how they think - though you can probably screen those folks out during the hiring process.

All in all I see it as another trade-off.


No problem about the misspelling of my name.

Absolutely right.. these all are the problems with DSL. And yeah.. if new hired employee leave the job after training, it will be very difficult to get another employee and train him/her. And its totally waste of time and money for company. Then the question is why they prefer DSL ?

Burk Hufnagel wrote:Dhavai,

That's a trap we as developers can fall in to, but it's not fair to blame the DSL. I've worked for several companies that had their own proprietary language, and the trick I've found is to either be on projects that don't use it or to keep involved in a community (user group) that's focused on a general purpose language like C or Java.


Yes correct.. I am not blaming DSL as it is a good thing from company perspective. And yeah.. its good suggestions to involved in community of general purpose programming language. Thanks for the suggestion Burk..

I am agree with Vyas Sanzgiri. I am working on DSL since one and a half year. And now I forget some of my java concepts and even syntax and everything. Now I'm afraid of surviving in the market. But after all I can see its a developer's fault. He/she should not stick with DSL for long time. But, still to DSL its..
Hello and welcome Mr. Terence Parr.
sorry I couldn't remove that previous post.

Tim McGuire wrote:It seems pretty clear that the tables are not identical. Could you post the DDL for each table so we can compare them?

Yeah sure.. Here it is..

Both the table has the following schema.. Because the tables are automatically made from a script. There is only difference in name of the table. They both have date as postfix.

Field Type Null Key Default Extra
url varchar(26) YES MUL null
accesstime datetime YES MUL null
hits int(11) YES null
datatransfer int(11) YES null

David O'Meara wrote:the error message is pretty informative. have you looked at that?

Yes I did search for that but I found no solution. They all were talking about incompatible engine type and datatype. But I've all tables created with MyISAM.

@Paul Sturrock

Alright, thanks for the info. I read that but it was working fine with the original mysql daemon. I've just copied the whole database from another location. Do you have anything in mind that can be solve this problem.
Hi guys,

I am getting following exception while executing merge query in mysql 3.2. I am using embedded java library called mysql-je. Its an open source project (

EXCEPTION IN RESULTSET WRAPPER WHILE EXECUTING QUERY: java.sql.SQLException: All tables in the MERGE table are not identically definedjava.sql.SQLException: All tables in the MERGE table are not identically defined
at com.mysql.embedded.api.api.mysql_real_query(Native Method)
at com.mysql.embedded.jdbc.MyStatement.execute(
at com.mysql.embedded.jdbc.MyStatement.executeQuery(

Thanks in advance,

Paul Clapham wrote:But isn't the GNU JavaMail API the same as Sun's JavaMail API? In which case you're just looking at bugs in the GNU version. And based on what Ulf says, those bugs aren't going to be fixed unless you do it yourself.

Yeah right.. GNU javamail is same as javamail API. I think I've to find the bugs and have to fix 'em myself. :( :( :( :thumbdown:

But still if anybody finds a solution,post it here. So anybody can refer to this thread.

12 years ago

Ulf Dittmer wrote:The tutorial talks about multipart at length. The MimeMultipart javadocs go into more detail; specifically, check out the setSubType method.

Thanks for the link. I've read that link. But that link specifies javamail API. I'm using GNU javamail library. I've also seen the GNU API's and try to set handler for it. Now, I am able to send mail. But receive blank contents.
12 years ago