Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate class and file names for entities and mapping #134

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

adolfodiaz
Copy link

The generator is leaving duplicate class and file names for entities and mapping.

Environment: SQL Server

Step to reproduce:
Create table script:

USE [YOUR_DATABASE]
GO

/****** Object:  Table [dbo].[header]    Script Date: 2020/06/09 11:01:10 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[header](
	[id_header] [int] NOT NULL,
 CONSTRAINT [PK_header] PRIMARY KEY CLUSTERED 
(
	[id_header] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO


CREATE TABLE [dbo].[details](
	[id_detail] [INT] NOT NULL,
	[id_header] [INT] NULL,
 CONSTRAINT [PK_details] PRIMARY KEY CLUSTERED 
(
	[id_detail] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[details]  WITH CHECK ADD  CONSTRAINT [FK_details_header] FOREIGN KEY([id_header])
REFERENCES [dbo].[header] ([id_header])
GO

ALTER TABLE [dbo].[details] CHECK CONSTRAINT [FK_details_header]
GO

Execution result before fix
image

Execution result after fix
image

For PR purposes i attach generation.yml in txt format

generation.yml.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants