- This topic has 6 replies, 5 voices, and was last updated 15 years ago by
support-shalini.
-
AuthorPosts
-
henry42MemberI tried many times when i generate the mapping relation.
But myeclipse(5.0 with eclipse 3.2) still make it just be many-to-one mapping relation with the attribute unique=true.
How to generate one-to-one mapping relation?What’s the wrong?
I use MySql.
my two table are:
1)
create table `henrydb`.`address`(
`id` int unsigned default ” not null,
`phone` varchar(45) default ” not null,
primary key (`id`)
);alter table `henrydb`.`address`
add index `FK_address_1`(`id`),
add constraint `FK_address_1`
foreign key (`id`)
references `henrydb`.`user`(`id`);
create unique index `PRIMARY` on `henrydb`.`address`(`id`);2)
create table `henrydb`.`user`(
`id` int unsigned not null auto_increment,
`username` varchar(45) default ” not null,
primary key (`id`)
);create unique index `PRIMARY` on `henrydb`.`user`(`id`);
thx for help.
November 15, 2006 at 12:28 pm #261916
Haris PecoMemberhenry42,
MyEclipse doesn’t support one-to-one relation, for now.
Sorry for the inconveince caused.
Regards,
November 15, 2006 at 12:30 pm #261918
Riyad KallaMembero2o mappings are not supported at this time, but it is something we are looking at for a future release.
June 29, 2010 at 1:21 pm #309440
Nigel SchoonParticipantI have been trying to get this to work most of today, then found this posting from 2006.
Four tables that should be 1-1, only one comes through Hibernate to MyEclipse version 8.5.
Is the o2o issue fixed?MySQL 5.1.3, schema designed in mysql workbench.
thanks
NigelJune 29, 2010 at 1:22 pm #309441
Nigel SchoonParticipantI have been trying to get this to work most of today, then found this posting from 2006.
Four tables that should be 1-1, only one comes through Hibernate to MyEclipse version 8.5.
Is the o2o issue fixed?MySQL 5.1.3, schema designed in mysql workbench.
thanks
NigelJune 29, 2010 at 1:23 pm #309442
Nigel SchoonParticipantI have been trying to get this to work most of today, then found this posting from 2006.
Four tables that should be 1-1, only one comes through Hibernate to MyEclipse version 8.5.
Is the o2o issue fixed?MySQL 5.1.3, schema designed in mysql workbench.
thanks
NigelJune 30, 2010 at 6:50 am #309471
support-shaliniMemberNigel,
Four tables that should be 1-1, only one comes through Hibernate to MyEclipse version 8.5.
Can you clarify what exactly is happening?
Can you send us the table scripts and the list of steps in detail to reproduce your issue? -
AuthorPosts