Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Amphibian
Commits
51c2b026
Commit
51c2b026
authored
Jan 21, 2021
by
Matija Obreza
Browse files
Merge branch 'remove-index-on-title' into 'master'
Remove unique index on Table.title See merge request genesys-pgr/amphibian!6
parents
7267d048
6680b722
Changes
2
Hide whitespace changes
Inline
Side-by-side
amphibian-server/src/main/java/org/genesys/amphibian/model/Table.java
View file @
51c2b026
...
...
@@ -36,7 +36,6 @@ public class Table {
@Indexed
(
unique
=
true
)
private
String
key
;
@Indexed
(
unique
=
true
)
private
String
title
;
private
String
collection
;
...
...
amphibian-server/src/main/java/org/genesys/amphibian/service/impl/MetadataServiceImpl.java
View file @
51c2b026
...
...
@@ -32,6 +32,7 @@ import java.util.UUID;
import
java.util.concurrent.atomic.AtomicInteger
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.math.NumberUtils
;
import
org.apache.poi.ss.usermodel.Cell
;
import
org.apache.poi.ss.usermodel.DateUtil
;
import
org.apache.poi.ss.usermodel.Row
;
...
...
@@ -279,7 +280,7 @@ public class MetadataServiceImpl implements MetadataService {
if
(
DateUtil
.
isCellDateFormatted
(
currentCell
))
{
list
.
add
(
currentCell
.
getDateCellValue
());
}
else
{
list
.
add
(
currentCell
.
get
Numeric
CellValue
());
list
.
add
(
NumberUtils
.
createNumber
(
currentCell
.
get
String
CellValue
())
)
;
}
break
;
case
FORMULA:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment