Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class KotlinSpringDataTest {
trace.hasSpansSatisfyingExactly({
it.hasName("CustomerRepository.findById").hasNoParent()
}, {
it.hasName("SELECT db.customer").hasParent(trace.getSpan(0))
it.hasName("SELECT db.CUSTOMER").hasParent(trace.getSpan(0))
})
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import org.springframework.data.annotation.Id
import org.springframework.data.relational.core.mapping.Column
import org.springframework.data.relational.core.mapping.Table

@Table("customer")
@Table("CUSTOMER")
data class Customer(
@Id @Column("id") val id: Long,
@Column("name") val name: String,
@Id @Column("ID") val id: Long,
@Column("NAME") val name: String,
)
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class PersistenceConfig {
initializer.setDatabasePopulator(
ResourceDatabasePopulator(
ByteArrayResource(
("CREATE TABLE customer (id INT PRIMARY KEY, name VARCHAR(100) NOT NULL);" +
"INSERT INTO customer (id, name) VALUES ('1', 'Name');")
("CREATE TABLE CUSTOMER (ID INT PRIMARY KEY, NAME VARCHAR(100) NOT NULL);" +
"INSERT INTO CUSTOMER (ID, NAME) VALUES ('1', 'Name');")
.toByteArray(StandardCharsets.UTF_8)
)
)
Expand Down
Loading