addamsson
10/14/2018, 3:01 PMaddamsson
10/14/2018, 3:01 PMorangy
DALDEI
10/15/2018, 6:08 PMorangy
Hexa
10/23/2018, 9:39 PMnfrankel
10/23/2018, 11:28 PMSTSAssumeRoleSessionCredentialsProvider.Builder
and AWSIotClientBuilder
nfrankel
10/23/2018, 11:28 PMCertificateServiceImpl
inject a CertificateService
instancegmariotti
11/07/2018, 10:02 AMVinicius Volpe
11/09/2018, 11:06 AMVinicius Volpe
11/09/2018, 11:07 AMJeff Gulbronson
11/09/2018, 3:14 PMaddamsson
11/10/2018, 10:37 PMMike
11/10/2018, 11:25 PMaddamsson
11/10/2018, 11:30 PMnapperley
11/11/2018, 12:17 AMaddamsson
11/11/2018, 12:19 AMaddamsson
11/11/2018, 12:19 AMaddamsson
11/11/2018, 12:19 AMnapperley
11/11/2018, 12:41 AMkenkyee
11/11/2018, 3:00 AMdave08
11/11/2018, 3:01 AMkenkyee
11/11/2018, 3:36 AMtipsy
11/11/2018, 7:38 AMdave
11/11/2018, 7:53 AMdave
11/11/2018, 7:58 AMkenkyee
11/11/2018, 1:42 PMDashishmakov
11/13/2018, 6:50 AMid 'org.jetbrains.kotlin.plugin.allopen' version '1.2.71'
id 'org.jetbrains.kotlin.plugin.noarg' version '1.2.71'
id 'org.jetbrains.kotlin.plugin.spring' version '1.2.71'
id 'org.jetbrains.kotlin.plugin.jpa' version '1.2.71'
Then I created entity instance and saved it in RDBMS
@Entity
data class User(
@Id
@SequenceGenerator(name = "users_id_generator", sequenceName = "users_id_seq")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "users_id_generator")
val id: Long = 0,
val userId: String
}
@Test
fun `find by id and user id should return the saved User`() {
val user = createUser(1)
assertThat(user.id).isZero()
val savedUser = userRepository.saveAndFlush(user)
assertThat(user.id).isPositive()
// ...
}
private fun createUser(userId: Long): User = User(userId = userId.toString())
Dashishmakov
11/13/2018, 6:52 AMval id: Long = 0
and we couldn’t assign new value manually in id
variable but with plugin could do it. Could you help me to understand it?
The new object didn’t create, the reference to the original instance and from saveAndFlush
are the same