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

Different ColumnDefinition for different platforms #62

Merged
merged 4 commits into from
Feb 17, 2022

Conversation

nPraml
Copy link

@nPraml nPraml commented Feb 16, 2022

gehört zum Issue ebean-orm#2559

Es soll möglich sein, pro Feld andere columnDefinitions für verschiedene Platformen zu definieren

Pattern: (Trennzeichen ist Semikolon, da es sehr unwahrscheinlich ist, dieses Zeichen beim Definieren des Spaltentypes benutzt wird)

@Column(columnDefinition = "PLATFORM1;DEFINITION1;PLATFORM2,PLATFORM3;DEFINITON2;DEFINITON-DEFAULT")

Beispiel:

@Column(columnDefinition = "db2;blob(64M);sqlserver,h2;varchar(227);varchar(127)")
String description;

Wenn man eigene Annotation bauen würde, müsste man die DDL-XML-Strukturen anpassen + halbe Migrationsgenerierung anfassen, wäre ziemlich aufwändig.

@nPraml nPraml merged commit 07c8f84 into master Feb 17, 2022
@rPraml rPraml deleted the columntype-platform-specific branch August 10, 2023 14:53
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.

1 participant