Discussion:
[Middlegen-user] MySql41 - problems with relationship discovery...
jdepaul
2007-03-30 13:55:21 UTC
Permalink
Hi -

I'm using Middlegen 2.1, MySql 4.1 - I've got a very simple schema setup to
test Middlegen Hibernate template generation. Here it is:

CREATE TABLE gems_lookup (
lookup_id INTEGER NOT NULL,
name VARCHAR(80) NOT NULL,
PRIMARY KEY (lookup_id)
) TYPE=INNODB;


CREATE TABLE gems_lookup_details
(
lookup_detail_id INTEGER NOT NULL,
lookup_key INTEGER NOT NULL,
code varchar(80) NOT NULL,
PRIMARY KEY (lookup_detail_id),
FOREIGN KEY (lookup_key)
REFERENCES gems_lookup(lookup_id)
) TYPE=INNODB;

Middlegen GUI finds and displays my tables OK, but it fails to discover the
relationships between the tables that I've setup. I've even tried creating
the same tables in lower case - still the same problems. I've also enabled
INNODB on my instance - although I have no idea what that is... I've even
tried configuring a different Driver that ships with Middlegen - makes no
differnece.

Anything else that I could do to help Middlegen properly discover the
relationships?! Without the relationship discovery it's pretty usesless t
me...

THanks,
James
--
View this message in context: http://www.nabble.com/MySql41---problems-with-relationship-discovery...-tf3492362.html#a9753623
Sent from the Middlegen - User mailing list archive at Nabble.com.
Thomas Finneid
2007-04-03 05:49:49 UTC
Permalink
Just a word of advice.

Middlegen is a dead product by now, there hasnt been any traffic on this
list for ages. If you can, use hibernate tools instead (bundled with
newer hibernate), it has better support on the mailinglists.

thomas
Post by jdepaul
Hi -
I'm using Middlegen 2.1, MySql 4.1 - I've got a very simple schema setup to
CREATE TABLE gems_lookup (
lookup_id INTEGER NOT NULL,
name VARCHAR(80) NOT NULL,
PRIMARY KEY (lookup_id)
) TYPE=INNODB;
CREATE TABLE gems_lookup_details
(
lookup_detail_id INTEGER NOT NULL,
lookup_key INTEGER NOT NULL,
code varchar(80) NOT NULL,
PRIMARY KEY (lookup_detail_id),
FOREIGN KEY (lookup_key)
REFERENCES gems_lookup(lookup_id)
) TYPE=INNODB;
Middlegen GUI finds and displays my tables OK, but it fails to discover the
relationships between the tables that I've setup. I've even tried creating
the same tables in lower case - still the same problems. I've also enabled
INNODB on my instance - although I have no idea what that is... I've even
tried configuring a different Driver that ships with Middlegen - makes no
differnece.
Anything else that I could do to help Middlegen properly discover the
relationships?! Without the relationship discovery it's pretty usesless t
me...
THanks,
James
Loading...