forked from box/mojito
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added parellization, updated database inserts to be done in batches o…
…f server side inserts
- Loading branch information
Showing
12 changed files
with
685 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
webapp/src/main/java/com/box/l10n/mojito/service/ai/translation/AITranslation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package com.box.l10n.mojito.service.ai.translation; | ||
|
||
import com.box.l10n.mojito.entity.TMTextUnit; | ||
import com.box.l10n.mojito.entity.TMTextUnitVariant; | ||
import java.time.ZonedDateTime; | ||
|
||
public class AITranslation { | ||
|
||
TMTextUnit tmTextUnit; | ||
Long localeId; | ||
String translation; | ||
String contentMd5; | ||
TMTextUnitVariant.Status status; | ||
boolean includedInLocalizedFile; | ||
ZonedDateTime createdDate; | ||
|
||
public TMTextUnit getTmTextUnit() { | ||
return tmTextUnit; | ||
} | ||
|
||
public void setTmTextUnit(TMTextUnit tmTextUnit) { | ||
this.tmTextUnit = tmTextUnit; | ||
} | ||
|
||
public Long getLocaleId() { | ||
return localeId; | ||
} | ||
|
||
public void setLocaleId(Long localeId) { | ||
this.localeId = localeId; | ||
} | ||
|
||
public String getTranslation() { | ||
return translation; | ||
} | ||
|
||
public void setTranslation(String translation) { | ||
this.translation = translation; | ||
} | ||
|
||
public TMTextUnitVariant.Status getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(TMTextUnitVariant.Status status) { | ||
this.status = status; | ||
} | ||
|
||
public boolean isIncludedInLocalizedFile() { | ||
return includedInLocalizedFile; | ||
} | ||
|
||
public void setIncludedInLocalizedFile(boolean includedInLocalizedFile) { | ||
this.includedInLocalizedFile = includedInLocalizedFile; | ||
} | ||
|
||
public ZonedDateTime getCreatedDate() { | ||
return createdDate; | ||
} | ||
|
||
public void setCreatedDate(ZonedDateTime createdDate) { | ||
this.createdDate = createdDate; | ||
} | ||
|
||
public String getContentMd5() { | ||
return contentMd5; | ||
} | ||
|
||
public void setContentMd5(String content_md5) { | ||
this.contentMd5 = content_md5; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.