Re: Overriding equals and hashCode in subclass: wizard doesn't include inherited fields.

2020-04-19 Thread John Burgess
But does it matter... As long as you come up with a hashcode that doesn't have too many clashes, and an equals that works, who cares? Xor was just habit/old-age Add, or or whatever you fancy... Get Outlook for Android From: Owen

Re: Overriding equals and hashCode in subclass: wizard doesn't include inherited fields.

2020-04-19 Thread Owen Thomas
On Sun, 19 Apr 2020 at 21:44, John Burgess wrote: > Xor the hashcode of the inherited fields (from super. Hashcode() ) and the > hsshcode of the new fields. > This solution might be a fair enough, and I might be seen as being pedantic, but I checked the output by using Objects.hash versus xoring

Re: I cannot find the MySQL Plugin

2020-04-19 Thread John Lavelle
Have a look at this video about fixing NetBeans MySQL connection Errors: https://youtu.be/qD2PwMokQiE Also this video for Time Zone connection problems: https://youtu.be/yUEA0kQfoEo Best regards, John j...@jql.co.uk On Sun, 19 Apr 2020 at 14:45, Richard Grin wrote: > Hi Francis, > > It's easy

Re: I cannot find the MySQL Plugin

2020-04-19 Thread Richard Grin
Obviously, you must change "customer" in the step 2 to the name of your database... Le 19/04/2020 à 14:45, Richard Grin a écrit : Hi Francis, It's easy to use MySQL 8.0.19 with NetBeans. 1. In the tab Services, open the entry Databases > Drivers. If you don't already have an entry for MySQL

Re: I cannot find the MySQL Plugin

2020-04-19 Thread Richard Grin
Hi Francis, It's easy to use MySQL 8.0.19 with NetBeans. 1. In the tab Services, open the entry Databases > Drivers. If you don't already have an entry for MySQL, create a new one. If you create a new one, a new window is opened. Add the path to the jar for the MySQL driver (path to mysql-co

Re: I cannot find the MySQL Plugin

2020-04-19 Thread Emilian Bold
If you rightclick Databases in the Services window you have a 'Register MySQL server' action. If you right click and do 'New Connection' you have a wizard mentioning how the MySQL driver can be installed. Due to licensing issues Apache can't include out of the box the MySQL driver... --emi On S

I cannot find the MySQL Plugin

2020-04-19 Thread Dr Francis Greaves
Dear All I thought I would move from Oracle Netbeans 8.2 to the Apache 11.3 version of Netbeans, only to come unstuck at the absence of a MySQL Plugin. I know there is a Database connection in the Services, but I cannot get that to connect. Is there an alternative? Looks Like I will stick with

Re: Overriding equals and hashCode in subclass: wizard doesn't include inherited fields.

2020-04-19 Thread John Burgess
Xor the hashcode of the inherited fields (from super. Hashcode() ) and the hsshcode of the new fields. Get Outlook for Android From: Owen Thomas Sent: Sunday, April 19, 2020 9:34:41 AM To: Emilian Bold Cc: NetBeans Mailing List Subject:

Re: Overriding equals and hashCode in subclass: wizard doesn't include inherited fields.

2020-04-19 Thread Owen Thomas
I don't know how calls to hashCode can be chained. Is there anything that can do that? I can implement hashCode in final classes using Objects.hash(), but I suppose it would be niche to be able to progressively build a hash code. On Sun, 19 Apr 2020 at 17:09, Emilian Bold wrote: > Interesting.

Re: Overriding equals and hashCode in subclass: wizard doesn't include inherited fields.

2020-04-19 Thread Emilian Bold
Interesting. Another idea might be to rely on super.hashCode and super.equals somewhere in there? --emi On Sun, Apr 19, 2020 at 6:00 AM Owen Thomas wrote: > Hi. I'm using NB 11.0. > > I'm trying to override equals and hashCode for a subclass of a type that > extends object. The inherited class