Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [Teneo] too long comment
| | | | |
Re: [Teneo] too long comment [message #91110 is a reply to message #91095] |
Fri, 20 July 2007 10:01 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
If the comment is on a many-to-one you also have to override the ManyToOneMapper, the same for
ManyToMany.
In the future I will move these utility methods to a separate utility class which can be replaced by
itself. That's easier than overriding all these subclasses.
gr. Martin
wolf_roma wrote:
> I did all what you say, where mistakes?:
> ......
> final ExtensionManager extensionManager = hds.getExtensionManager();
> extensionManager.registerExtension(BasicMapper.class.getName (),
> BasicMapperEx.class.getName());
> extensionManager.registerExtension(OneToManyMapper.class.get Name(),
> OneToManyMapperEx.class.getName());
> hds.initialize();
> ......
> public class BasicMapperEx extends BasicMapper{
>
> /* (non-Javadoc)
> * @see
> org.eclipse.emf.teneo.hibernate.mapper.AbstractMapper#addCom mentElement(org.eclipse.emf.ecore.EModelElement,
> org.eclipse.emf.teneo.simpledom.Element)
> */
> @Override
> protected Element addCommentElement(EModelElement modelElement,
> Element hbmElement)
> {
> return null;
> }
> }
> .....
> public class OneToManyMapperEx extends OneToManyMapper{
> /* (non-Javadoc)
> * @see
> org.eclipse.emf.teneo.hibernate.mapper.AbstractMapper#addCom mentElement(org.eclipse.emf.ecore.EModelElement,
> org.eclipse.emf.teneo.simpledom.Element)
> */
> @Override
> protected Element addCommentElement(EModelElement modelElement,
> Element hbmElement)
> {
> return null;
> }
> }
>
> I have comment and haven't table )))
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: [Teneo] too long comment [message #91125 is a reply to message #91110] |
Fri, 20 July 2007 10:17 |
Roman Bliznets Messages: 75 Registered: July 2009 |
Member |
|
|
:) I did what you say:
extensionManager.registerExtension(BasicMapper.class.getName (),
BasicMapperEx.class.getName());
extensionManager.registerExtension(OneToManyMapper.class.get Name(),
OneToManyMapperEx.class.getName());
extensionManager.registerExtension(ManyToOneMapper.class.get Name(),
ManyToOneMapperEx.class.getName());
extensionManager.registerExtension(ManyToManyMapper.class.ge tName(),
ManyToManyMapperEx.class.getName());
I check, extension work (return null from function)..
....
27563 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Unsuccessful:
create table `cstmconditiondocmentstype` (`documentbasetype_e_id` bigint not
null, `linenumber` numeric(2,2), `sublinenumber` varchar(2),
`documentmodecode` varchar(4), `informationcode` varchar(2), `perioddate`
date not null, `conditiondate` date, `saledate` date, `presentingdate` date,
`goodsstatus` varchar(1), `repairstatus` bit, primary key
(`documentbasetype_e_id`)) comment='???????? ? ??????????, ??????????? ? ?.
9.1 -9.6 ?? ??????????? ???????, ????? ??? ???????????? ? ???????? ?????????
?? ??????????? ???????.'
27563 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Too long
comment for table 'cstmconditiondocmentstype'
....
|
|
|
Re: [Teneo] too long comment [message #91140 is a reply to message #91125] |
Fri, 20 July 2007 10:17 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
And there is EntityMapper, IdMapper and ManyAttributeMapper. I think it is the EntityMapper as the
error seems to be on the table name.
Hmmm, I see now that your first post already mentioned this, I should have looked better...
gr. Martin
wolf_roma wrote:
> :) I did what you say:
>
> extensionManager.registerExtension(BasicMapper.class.getName (),
> BasicMapperEx.class.getName());
> extensionManager.registerExtension(OneToManyMapper.class.get Name(),
> OneToManyMapperEx.class.getName());
> extensionManager.registerExtension(ManyToOneMapper.class.get Name(),
> ManyToOneMapperEx.class.getName());
> extensionManager.registerExtension(ManyToManyMapper.class.ge tName(),
> ManyToManyMapperEx.class.getName());
>
> I check, extension work (return null from function)..
>
> ....
>
> 27563 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Unsuccessful:
> create table `cstmconditiondocmentstype` (`documentbasetype_e_id` bigint not
> null, `linenumber` numeric(2,2), `sublinenumber` varchar(2),
> `documentmodecode` varchar(4), `informationcode` varchar(2), `perioddate`
> date not null, `conditiondate` date, `saledate` date, `presentingdate` date,
> `goodsstatus` varchar(1), `repairstatus` bit, primary key
> (`documentbasetype_e_id`)) comment='???????? ? ??????????, ??????????? ? ?.
> 9.1 -9.6 ?? ??????????? ???????, ????? ??? ???????????? ? ???????? ?????????
> ?? ??????????? ???????.'
>
> 27563 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Too long
> comment for table 'cstmconditiondocmentstype'
>
> ....
>
>
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| | | | |
Re: [Teneo] too long comment [message #608834 is a reply to message #91095] |
Fri, 20 July 2007 10:01 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
If the comment is on a many-to-one you also have to override the ManyToOneMapper, the same for
ManyToMany.
In the future I will move these utility methods to a separate utility class which can be replaced by
itself. That's easier than overriding all these subclasses.
gr. Martin
wolf_roma wrote:
> I did all what you say, where mistakes?:
> ......
> final ExtensionManager extensionManager = hds.getExtensionManager();
> extensionManager.registerExtension(BasicMapper.class.getName (),
> BasicMapperEx.class.getName());
> extensionManager.registerExtension(OneToManyMapper.class.get Name(),
> OneToManyMapperEx.class.getName());
> hds.initialize();
> ......
> public class BasicMapperEx extends BasicMapper{
>
> /* (non-Javadoc)
> * @see
> org.eclipse.emf.teneo.hibernate.mapper.AbstractMapper#addCom mentElement(org.eclipse.emf.ecore.EModelElement,
> org.eclipse.emf.teneo.simpledom.Element)
> */
> @Override
> protected Element addCommentElement(EModelElement modelElement,
> Element hbmElement)
> {
> return null;
> }
> }
> .....
> public class OneToManyMapperEx extends OneToManyMapper{
> /* (non-Javadoc)
> * @see
> org.eclipse.emf.teneo.hibernate.mapper.AbstractMapper#addCom mentElement(org.eclipse.emf.ecore.EModelElement,
> org.eclipse.emf.teneo.simpledom.Element)
> */
> @Override
> protected Element addCommentElement(EModelElement modelElement,
> Element hbmElement)
> {
> return null;
> }
> }
>
> I have comment and haven't table )))
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: [Teneo] too long comment [message #608835 is a reply to message #91110] |
Fri, 20 July 2007 10:17 |
Roman Bliznets Messages: 75 Registered: July 2009 |
Member |
|
|
:) I did what you say:
extensionManager.registerExtension(BasicMapper.class.getName (),
BasicMapperEx.class.getName());
extensionManager.registerExtension(OneToManyMapper.class.get Name(),
OneToManyMapperEx.class.getName());
extensionManager.registerExtension(ManyToOneMapper.class.get Name(),
ManyToOneMapperEx.class.getName());
extensionManager.registerExtension(ManyToManyMapper.class.ge tName(),
ManyToManyMapperEx.class.getName());
I check, extension work (return null from function)..
....
27563 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Unsuccessful:
create table `cstmconditiondocmentstype` (`documentbasetype_e_id` bigint not
null, `linenumber` numeric(2,2), `sublinenumber` varchar(2),
`documentmodecode` varchar(4), `informationcode` varchar(2), `perioddate`
date not null, `conditiondate` date, `saledate` date, `presentingdate` date,
`goodsstatus` varchar(1), `repairstatus` bit, primary key
(`documentbasetype_e_id`)) comment='???????? ? ??????????, ??????????? ? ?.
9.1 -9.6 ?? ??????????? ???????, ????? ??? ???????????? ? ???????? ?????????
?? ??????????? ???????.'
27563 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Too long
comment for table 'cstmconditiondocmentstype'
....
|
|
|
Re: [Teneo] too long comment [message #608836 is a reply to message #91125] |
Fri, 20 July 2007 10:17 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
And there is EntityMapper, IdMapper and ManyAttributeMapper. I think it is the EntityMapper as the
error seems to be on the table name.
Hmmm, I see now that your first post already mentioned this, I should have looked better...
gr. Martin
wolf_roma wrote:
> :) I did what you say:
>
> extensionManager.registerExtension(BasicMapper.class.getName (),
> BasicMapperEx.class.getName());
> extensionManager.registerExtension(OneToManyMapper.class.get Name(),
> OneToManyMapperEx.class.getName());
> extensionManager.registerExtension(ManyToOneMapper.class.get Name(),
> ManyToOneMapperEx.class.getName());
> extensionManager.registerExtension(ManyToManyMapper.class.ge tName(),
> ManyToManyMapperEx.class.getName());
>
> I check, extension work (return null from function)..
>
> ....
>
> 27563 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Unsuccessful:
> create table `cstmconditiondocmentstype` (`documentbasetype_e_id` bigint not
> null, `linenumber` numeric(2,2), `sublinenumber` varchar(2),
> `documentmodecode` varchar(4), `informationcode` varchar(2), `perioddate`
> date not null, `conditiondate` date, `saledate` date, `presentingdate` date,
> `goodsstatus` varchar(1), `repairstatus` bit, primary key
> (`documentbasetype_e_id`)) comment='???????? ? ??????????, ??????????? ? ?.
> 9.1 -9.6 ?? ??????????? ???????, ????? ??? ???????????? ? ???????? ?????????
> ?? ??????????? ???????.'
>
> 27563 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Too long
> comment for table 'cstmconditiondocmentstype'
>
> ....
>
>
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Goto Forum:
Current Time: Thu Apr 18 12:28:34 GMT 2024
Powered by FUDForum. Page generated in 0.01856 seconds
|