Package com.example.prototypes.repo

Examples of com.example.prototypes.repo.EmailAddressTypeRepository


   * @throws Exception
   */
  public static void main(final String[] args) throws Exception {
    ApplicationContext context = new ClassPathXmlApplicationContext("app-context.xml");
    ;
    EmailAddressTypeRepository repository = context.getBean(EmailAddressTypeRepository.class);
    EmailAddressType addressType = new EmailAddressType();
    addressType.setActive(true);
    addressType.setDefaultDef(true);
    addressType.setName("Nowy");
    repository.save(addressType);
    // EmailAddressType addressType = repository.find(1L);
    EmailService service = context.getBean(EmailService.class);
    service.doIt();

    CheckingAccountService bean = context.getBean(CheckingAccountService.class);
View Full Code Here

TOP

Related Classes of com.example.prototypes.repo.EmailAddressTypeRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.