Hvala! :)
From: Boris Horvat
To: Tapestry users ; Andjela Djenic
Sent: Friday, May 17, 2013 12:06 AM
Subject: Re: Unknown entity and SessionFactory null
Srecno u projektu... Zanimljivo da se tapestry radi sada na fon-u ja sam ga
radio u 4toj
On Fri
It was wrong hibernate mapping. It works now without adding entities to
hibernate.config.xml and without adding the contribution to
HibernateEntityPackageManager class.
I know that tapestry-hibernate covers tapestry-core and
tapestry-hibernate-core, but for some reason my app won't work with t
Here's the link to console output http://justpaste.it/2n2r
Thanks,
Angela
From: Boris Horvat
To: Andjela Djenic
Cc: Tapestry users
Sent: Thursday, May 16, 2013 10:29 PM
Subject: Re: Unknown entity and SessionFactory null
What exception?
On Thu, M
Thanks,
Angela
From: Boris Horvat
To: Tapestry users ; Andjela Djenic
Sent: Thursday, May 16, 2013 9:46 PM
Subject: Re: Unknown entity and SessionFactory null
Can you try adding in AppModule.java
@Contribute(HibernateEntityPackageManager.class)
pub
automatically retrieved from the entities packages.
Have a look at it and you might find the difference why it isn't working
for you.
Hope it is helpful.
Aloha
Robert
Andjela Djenic schrieb:
> I added entity class in hibernate.cfg.xml and it works. I don't get why
> Tapestry won't
true
org.hibernate.transaction.JDBCTransactionFactory
thread
I added only one entity to try if it works.
From: Boris Horvat
To: Tapestry users ; Andjela Djenic
Sent: Thursday, May 16, 2013 9:32 PM
Subject: Re: Unknown entity and SessionFact
I added entity class in hibernate.cfg.xml and it works. I don't get why
Tapestry won't automatically see my entities package.
Thanks for the help folks!
Angela
From: Lenny Primak
To: Tapestry users
Sent: Thursday, May 16, 2013 9:14 PM
Subject: Re: Unknown e
Hi Ken,
The entities that I use are in the entities package. From Igor Drobiazko's
book: "...by convention, the entities sub-package of
the application's package is scanned for persistent classes. Any class
annotated with
@Entity, @Embeddable or @MappedSuperclass annotation is automatically
ad
I already tried with that dependency, and it won't work for me.
Thanks for the hmac-passphrase.
Thanks,
Angela
All my entities are in myapp/entities package.
"By default, the package application-root-package.entities is scanned as
described above.
If you have additional packages containing entities, you must contribute them
to the tapestry.hibernate.HibernateEntityPackageManager service configuration.
Here is my hibernate.cfg.xml file:
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>
com.mysql.jdbc.Driver
jdbc:mysql://localhost:3306/library
org.hibernate.dialect.MySQLDialect
root
books
update
true
true
Hi,
I'm newbie in Tapestry and Hibernate and I cannot realize why Hibernate don't
see my entities. My entity classes have @Entity annotation and are in entities
package. Dependencies for hibernate-tapestry that I use:
org.apache.tapestry
tapestry-core
12 matches
Mail list logo