ãã¨ãã°ãããªã¢ãã«ããã£ã¦ãç¸äºã«ä¾åãã¦ããã±ã¼ã¹ãèãããã 注æ:説æãç°¡åã«ããããã«ãvarãå©ç¨ãã¦ãã¾ãã å¾æ¥å¡1 2 3 4 5 class Employee( val id: Long, val name: String, var depertment: Option[Depertment] = None ) é¨ç½²1 2 3 4 5 class Depertment( val id: Long, val name: String, var employees: Seq[Employee] = Seq.empty ) å©ç¨ä¾1 2 3 4 5 val employee = new Employee(1, "KATO") val depertment = new Depertment(1, "Dev") employee.depertment = Some(depertm
{{#tags}}- {{label}}
{{/tags}}