/* * Copyright 2004-2006 the Seasar Foundation and the Others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package s2dao_test.test; import java.math.BigDecimal; import java.util.List; import org.seasar.framework.container.S2Container; import org.seasar.framework.container.factory.S2ContainerFactory; import s2dao_test.dao.EOS0010M; import s2dao_test.dao.EOS0010MDao; /** * * * @author Toshitaka Agata(Nulab,inc.) */ public class S2dao_test { private static final String PATH = "s2dao_test/PagerClient.dicon"; public static void main(String[] args) { S2Container container = S2ContainerFactory.create(PATH); container.init(); try { EOS0010MDao dao = (EOS0010MDao) container.getComponent(EOS0010MDao.class); EOS0010M eos0010 = dao.getEntity(new BigDecimal("4200"),new BigDecimal("0")); System.out.println("----------"); System.out.println("HNAMEJ: " + eos0010.getHnamej()); } finally { container.destroy(); } } }