Hi I am using the @ManyToOne association for the column join as shown below
@ManyToOne(cascade = {}, fetch = FetchType.EAGER) @JoinColumn(name = "PROGRAM", unique = false, nullable = false, insertable = true, updatable = true) protected Program getProgram() { return this.program; }
Almost all the class entities are using the same association. And i want to change the FetchType to LAZY. I know that the default fetch type is EAGER for all OneToOne and ManyToOne. How can i change this default behaviour to point the FetchType to Lazy. Can i do it in hibernatemapping config file. (hibernate-mapping.hbm.ftl). if not where and how can i do it. Thanks.
|