{"action":"created","issue":{"url":"https://api.github.com/repos/javers/javers/issues/575","repository_url":"https://api.github.com/repos/javers/javers","labels_url":"https://api.github.com/repos/javers/javers/issues/575/labels{/name}","comments_url":"https://api.github.com/repos/javers/javers/issues/575/comments","events_url":"https://api.github.com/repos/javers/javers/issues/575/events","html_url":"https://github.com/javers/javers/issues/575","id":246823276,"number":575,"title":"Java EE Support","user":{"login":"mark1900","id":11822480,"avatar_url":"https://avatars2.githubusercontent.com/u/11822480?v=4","gravatar_id":"","url":"https://api.github.com/users/mark1900","html_url":"https://github.com/mark1900","followers_url":"https://api.github.com/users/mark1900/followers","following_url":"https://api.github.com/users/mark1900/following{/other_user}","gists_url":"https://api.github.com/users/mark1900/gists{/gist_id}","starred_url":"https://api.github.com/users/mark1900/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark1900/subscriptions","organizations_url":"https://api.github.com/users/mark1900/orgs","repos_url":"https://api.github.com/users/mark1900/repos","events_url":"https://api.github.com/users/mark1900/events{/privacy}","received_events_url":"https://api.github.com/users/mark1900/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-31T17:16:54Z","updated_at":"2017-08-01T08:03:23Z","closed_at":"2017-08-01T08:03:23Z","body":"I am looking into Java EE integration (JPA, CDI, EJBs, etc ) with Javers and I don't see any specific documentation on this.\r\n\r\nI am slightly worried as I looked at the [spring-integration](https://javers.org/documentation/spring-integration/) and it seems like there is quite a few classes in the supporting library - [javers-spring source](https://github.com/javers/javers/tree/master/javers-spring).\r\n\r\nIf I extracted and reused the following classes, would the following code be expected to work as expected?  Or would more work be required?\r\n* [JpaHibernateConnectionProvider.java](https://github.com/javers/javers/blob/master/javers-spring/src/main/java/org/javers/spring/jpa/JpaHibernateConnectionProvider.java)\r\n* [HibernateUnproxyObjectAccessHook.java](https://github.com/javers/javers/blob/master/javers-spring/src/main/java/org/javers/hibernate/integration/HibernateUnproxyObjectAccessHook.java)\r\n\r\n```java\r\nConnectionProvider connectionProvider = new JpaHibernateConnectionProvider();\r\n\r\nJaversSqlRepository sqlRepository = SqlRepositoryBuilder\r\n\t\t.sqlRepository()\r\n\t\t.withConnectionProvider(connectionProvider)\r\n\t\t.withDialect(DialectName.MSSQL)\r\n\t\t.withSchema( \"javers\" )\r\n//        .withObjectAccessHook( new HibernateUnproxyObjectAccessHook() )\r\n\t\t.build();\r\n\r\nsqlRepository.ensureSchema();\r\n\r\njavers = JaversBuilder\r\n\t\t.javers()\r\n\t\t.withMappingStyle( MappingStyle.BEAN )\r\n\t\t.registerJaversRepository( sqlRepository )\r\n\t\t.build();\r\n```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/javers/javers/issues/comments/319298495","html_url":"https://github.com/javers/javers/issues/575#issuecomment-319298495","issue_url":"https://api.github.com/repos/javers/javers/issues/575","id":319298495,"user":{"login":"bartoszwalacik","id":2511028,"avatar_url":"https://avatars1.githubusercontent.com/u/2511028?v=4","gravatar_id":"","url":"https://api.github.com/users/bartoszwalacik","html_url":"https://github.com/bartoszwalacik","followers_url":"https://api.github.com/users/bartoszwalacik/followers","following_url":"https://api.github.com/users/bartoszwalacik/following{/other_user}","gists_url":"https://api.github.com/users/bartoszwalacik/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszwalacik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszwalacik/subscriptions","organizations_url":"https://api.github.com/users/bartoszwalacik/orgs","repos_url":"https://api.github.com/users/bartoszwalacik/repos","events_url":"https://api.github.com/users/bartoszwalacik/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszwalacik/received_events","type":"User","site_admin":false},"created_at":"2017-08-01T08:03:23Z","updated_at":"2017-08-01T08:03:23Z","body":"Sorry, but I don't understand this issue.\r\njavers-spring module wokrs with all Spring applications\r\njavers-persistence-sql module works for Spring applications with JPA + Hibernate persistence.\r\nCurrently, we do not offer any integration for EJB or other DI containers.\r\n\r\nOf course you can take some classes from JaVers codebase and reuse/extend them in different context but you are doing it on your own risk.\r\n\r\n"}}
{"actor":{"display_login":"bartoszwalacik"}}