Skip to content

Instantly share code, notes, and snippets.

@jlogar
jlogar / Child.java
Last active August 24, 2017 13:39
Mapping to a child table twice - @OneToMany & @manytoone
@Entity
@Table(name = "child")
public class Child {
@ManyToOne(optional = false)
private Parent parent;
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
//zdej
export class SmartCard {
constructor(private a,b,c) {
}
func1 = () => {
a = translate('my key');
}
}
//prej