Menu

#14 Dia2Code ignores uml tags with #_

open
nobody
None
5
2012-09-27
2006-06-12
Martin Roos
No

If you create a uml class with neame #_foo_bar then
dia2code -t sql foobar.dia , produces a sql file that
doesn't contain the table names.

this only seems to hit out when the has characted is in
the beginning of the line, tables with 'normal' names
are created normally.

i'm creating a database here with the help of dia and i
need it to be prefixable so multiple installations
could be made by just changing the prefix. the wildchar
i use for the prefixes is #_ , so tablex becomes

_tablex in the design. short and simple, but

appearantly dia2code does ignore the #_ table names, so
i get sql that looks like

CREATE TABLE (
-- Attributes --
group_id integer,
name varchar(32),
description varchar(255));

but actually that should have been

CREATE TABLE #_groups (
-- Attributes --
group_id integer,
name varchar(32),
description varchar(255));

i guess it's down to the fact that dia itself uses #
tags for it's internal purposes but i'm sure it can be
detected if it's just a a ## of dia's own stuff or

_something from the user itself :)

Discussion


Log in to post a comment.