Open Source Projects

ceefour pushed to master at soluvas/soluvas-buzz

ceefour on GitHub - 4 hours 46 min ago
August 20, 2014 ceefour pushed to master at soluvas/soluvas-buzz
Categories: Open Source Projects

ceefour pushed to master at soluvas/soluvas-framework

ceefour on GitHub - 12 hours 43 min ago
August 20, 2014 ceefour pushed to master at soluvas/soluvas-framework
Categories: Open Source Projects

ceefour pushed to master at soluvas/soluvas-buzz

ceefour on GitHub - Tue, 08/19/2014 - 19:56
August 19, 2014 ceefour pushed to master at soluvas/soluvas-buzz
Categories: Open Source Projects

ceefour pushed to master at soluvas/soluvas-framework

ceefour on GitHub - Tue, 08/19/2014 - 19:54
August 19, 2014 ceefour pushed to master at soluvas/soluvas-framework
Categories: Open Source Projects

ceefour commented on issue JadiraOrg/jadira#21

ceefour on GitHub - Tue, 08/19/2014 - 18:42
August 19, 2014 ceefour commented on issue JadiraOrg/jadira#21

I tried to do PersistentLongList as well. The problem is during schema generation, Hibernate is unable to create varchar[] or bigint[] properly: :( 0…

Categories: Open Source Projects

Comment by Hendy Irawan on Hibernate/JPA/HSQL : How to create a Dialect mapping for User Type ARRAY

Hendy Irawan on Stack Overflow - Tue, 08/19/2014 - 18:40
@user671435 what's SQL_TYPES ? While Hibernate can be made to work with PostgreSQL arrays, what's problematic is during schema generation
Categories: Open Source Projects

Answer by Hendy Irawan for Composite Key in JPA / Hibernate with inherited class

Hendy Irawan on Stack Overflow - Tue, 08/19/2014 - 14:24

The mentioned workaround for HHH-9114 bug by Michael works, e.g. in my case by adding to TwitterListedCount : (note that both @Id and @Type must be added for user types to still work)

// TODO: https://hibernate.atlassian.net/browse/HHH-9114 @Override @Id public long getTwitterUserId() { return super.getTwitterUserId(); } @Override @Id public DateTime getFetchTime() { return super.getFetchTime(); }

FYI, when used together with Spring Data JPA, it's required to remove the @Id and @Type annotations from the MappedSuperclass. If these are not removed, there will be errors bellow. It doesn't change the nature of this Hibernate bug, BTW.

org.springframework.data.mapping.model.MappingException: Ambiguous mapping! Annotation Id configured on field twitterUserId and one of its accessor methods in class TwitterFollowerCount! at org.springframework.data.mapping.model.AnnotationBasedPersistentProperty.populateAnnotationCache(AnnotationBasedPersistentProperty.java:111) at org.springframework.data.mapping.model.AnnotationBasedPersistentProperty.<init>(AnnotationBasedPersistentProperty.java:66) at org.springframework.data.jpa.mapping.JpaPersistentPropertyImpl.<init>(JpaPersistentPropertyImpl.java:86) at org.springframework.data.jpa.mapping.JpaMetamodelMappingContext.createPersistentProperty(JpaMetamodelMappingContext.java:67) at org.springframework.data.jpa.mapping.JpaMetamodelMappingContext.createPersistentProperty(JpaMetamodelMappingContext.java:35) at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.createAndRegisterProperty(AbstractMappingContext.java:449) at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.doWith(AbstractMappingContext.java:427) at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:607) at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:295) at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:257) at org.springframework.data.mapping.context.AbstractMappingContext.initialize(AbstractMappingContext.java:373) at org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension$JpaMetamodelMappingContextFactoryBean.createInstance(JpaRepositoryConfigExtension.java:216) at org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension$JpaMetamodelMappingContextFactoryBean.createInstance(JpaRepositoryConfigExtension.java:169) at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:134) at org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension$JpaMetamodelMappingContextFactoryBean.afterPropertiesSet(JpaRepositoryConfigExtension.java:230) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) ... 40 more
Categories: Open Source Projects

ceefour starred apache/syncope

ceefour on GitHub - Tue, 08/19/2014 - 00:24
ceefour starred apache/syncope August 18, 2014
Categories: Open Source Projects

ceefour pushed to master at soluvas/soluvas-buzz

ceefour on GitHub - Mon, 08/18/2014 - 22:22
August 18, 2014 ceefour pushed to master at soluvas/soluvas-buzz
Categories: Open Source Projects

How to specify packagesToScan in HibernateJpaAutoConfiguration?

Hendy Irawan on Stack Overflow - Mon, 08/18/2014 - 22:10

I'm using HibernateJpaAutoConfiguration directly in a Spring unit test. While Hibernate and EntityManager is configured, no entities are scanned.

10:29:36.377 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 10:29:36.505 [main] TRACE o.s.b.b.PropertiesConfigurationFactory - Property Sources: org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor$FlatPropertySources@65f8f5ae 10:29:36.638 [main] TRACE o.s.b.b.PropertiesConfigurationFactory - Property Sources: org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor$FlatPropertySources@65f8f5ae 10:29:36.716 [main] TRACE o.s.b.b.PropertiesConfigurationFactory - Property Sources: org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor$FlatPropertySources@65f8f5ae 10:29:36.818 [main] INFO o.s.o.j.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'default' 10:29:36.842 [main] INFO o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [ name: default ...] 10:29:36.979 [main] INFO org.hibernate.Version - HHH000412: Hibernate Core {4.3.6.Final} 10:29:36.980 [main] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found 10:29:36.982 [main] INFO org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist 10:29:37.234 [main] INFO o.h.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {4.0.4.Final} 10:29:37.599 [main] INFO org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL9Dialect 10:29:37.608 [main] INFO o.h.e.j.internal.LobCreatorBuilder - HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException 10:29:37.648 [main] INFO o.h.h.i.a.ASTQueryTranslatorFactory - HHH000397: Using ASTQueryTranslatorFactory 10:29:37.742 [main] INFO o.h.tool.hbm2ddl.SchemaUpdate - HHH000228: Running hbm2ddl schema update 10:29:37.742 [main] INFO o.h.tool.hbm2ddl.SchemaUpdate - HHH000102: Fetching database metadata 10:29:37.744 [main] INFO o.h.tool.hbm2ddl.SchemaUpdate - HHH000396: Updating schema 10:29:37.745 [main] INFO o.h.tool.hbm2ddl.SchemaUpdate - HHH000232: Schema update complete

My workaround is to create my own LocalContainerEntityManagerFactoryBean as follows:

final LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean(); factoryBean.setPersistenceUnitName("buzzPU"); // persistence.xml factoryBean.setDataSource(dataSource); factoryBean.setJpaVendorAdapter(jpaVendorAdapter); factoryBean.setPersistenceXmlLocation("classpath*:META-INF/donotparsepersistence.xml"); factoryBean.setPackagesToScan("org.soluvas.buzz.core.jpa");

Note that I don't use META-INF/persistence.xml

Categories: Open Source Projects

ceefour pushed to master at soluvas/soluvas-buzz

ceefour on GitHub - Mon, 08/18/2014 - 20:12
August 18, 2014 ceefour pushed to master at soluvas/soluvas-buzz
Categories: Open Source Projects

Comment by Hendy Irawan on Java - JPA @Basic and @Embedded annotations

Hendy Irawan on Stack Overflow - Mon, 08/18/2014 - 18:55
@Pascal What if there are no overrides? What's the purpose of @Embedded? Can it be left out?
Categories: Open Source Projects

ceefour pushed to master at ceefour/eclipse438952

ceefour on GitHub - Mon, 08/18/2014 - 17:31
August 18, 2014 ceefour pushed to master at ceefour/eclipse438952
Categories: Open Source Projects

ceefour created repository ceefour/eclipse438952

ceefour on GitHub - Mon, 08/18/2014 - 17:27
ceefour created repository ceefour/eclipse438952 August 18, 2014
Categories: Open Source Projects

ceefour pushed to master at soluvas/soluvas-framework

ceefour on GitHub - Mon, 08/18/2014 - 16:11
August 18, 2014 ceefour pushed to master at soluvas/soluvas-framework
  • 539ca51 FREQ-54 EmailManagerImpl improvement
Categories: Open Source Projects

ceefour pushed to master at soluvas/soluvas-framework

ceefour on GitHub - Mon, 08/18/2014 - 12:41
August 18, 2014 ceefour pushed to master at soluvas/soluvas-framework
  • a6aeecb FREQ-54 ByteArrayDataSource
Categories: Open Source Projects