jasper
06/04/2017, 8:51 AMjasper
06/05/2017, 6:44 AMjasper
06/05/2017, 6:45 AMjasper
06/05/2017, 6:48 AMenleur
06/05/2017, 7:15 AMclass UserService @Autowired constructor(userRepo: UserRepository)
{
private val userRepository: UserRepository = userRepo
why don’t just use?
class UserService(private val userRepository: UserRepository)
nfrankel
06/05/2017, 7:24 AM@Autowired
from Spring 4.2 onwardsjasper
06/05/2017, 8:02 AMjasper
06/05/2017, 8:02 AMstrelok
06/05/2017, 12:20 PMspring-data-mongodb
and Kotlin data classes. But it happens at random. I've tried adding @PersistenceConstructor
and annotating each property with a @Field
annotation, but it still happens.strelok
06/05/2017, 12:21 PMcom.mycompany.Policy
to bind constructor parameter to!`strelok
06/05/2017, 12:23 PMdata class Policy(
@Id var id: ObjectId? = null,
val startDate: LocalDate,
val endDate: LocalDate,
val quote: Quote,
var paymentTransaction: PaymentTransaction? = null
)
Just basic stuffstrelok
06/05/2017, 12:24 PMdata class Policy @PersistenceConstructor constructor( ... )
signaturestrelok
06/05/2017, 12:26 PMjasper
06/05/2017, 11:07 PMjasper
06/05/2017, 11:09 PMstrelok
06/05/2017, 11:13 PM-java-parameters
compiler flag which ensures the meta data is available to Java reflection.strelok
06/05/2017, 11:13 PMjasper
06/05/2017, 11:14 PMjasper
06/05/2017, 11:14 PMjasper
06/05/2017, 11:15 PM-java-parameters
not the default? I would prefer flawless interoperability over performance.jasper
06/05/2017, 11:17 PMstrelok
06/05/2017, 11:17 PM-parameters
flag. I'm not too sure. You know in Java nobody would write an entity with a constructor. It would just be a bunch fields annotated with whatever annotations you needjasper
06/05/2017, 11:17 PMjasper
06/05/2017, 11:19 PMstrelok
06/05/2017, 11:19 PMstrelok
06/05/2017, 11:20 PMiammiles
06/06/2017, 5:14 AMrpalcolea
06/06/2017, 8:43 PMsdeleuze
06/06/2017, 10:00 PMsdeleuze
06/06/2017, 10:01 PM