📄 voucherentryfactory.java
字号:
package org.operamasks.example.ejb.gl.util;import java.util.ArrayList;import org.operamasks.example.ejb.gl.entity.AccountView;import org.operamasks.example.ejb.gl.entity.Currency;import org.operamasks.example.ejb.gl.entity.Person;import org.operamasks.example.ejb.gl.entity.VoucherAssistRecord;import org.operamasks.example.ejb.gl.entity.VoucherEntry;public class VoucherEntryFactory { public VoucherEntry createBean() { VoucherEntry entry = new VoucherEntry(); AccountView accountView = new AccountView(); entry.setAccountView(accountView); Currency currency = new Currency(); entry.setCurrency(currency); Person person = new Person(); entry.setCashier(person); entry.setVoucherAssistRecords(new ArrayList<VoucherAssistRecord>()); return entry; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -