I like JSF and Hibernate but I have a a problem to make the right decision:
In fact, I have POJOs for Client, House, Problem and son on.
and a Business delegate RentManager. ... |
I'm running into a problem with Hibernate where when trying to delete a group of Entities I encounter the following error:
javax.persistence.EntityNotFoundException: deleted entity passed to persist: [com.locuslive.odyssey.entity.FreightInvoiceLine#<null>]
These are not normally so ... |
I'm trying to use hibernate to fill my jsf selectonemenu in ApplicationBean (in Liferay). The problem is that I got Initial SessionFactory creation failed problem. Before putting my functions in the ... |
I'm new to JSF and am wondering if I got things right. Let's say I have a simple CMS that makes it possible to write pages.
First, I define a JPA entity ... |
Are there any ready-to-use sample web applications using JSF, RichFaces and Hibernate?
|
(sorry if this is the wrong place to ask this)
I have an idea for a small website (2 or 3 pages) that I want to build in Java - more specifically ... |
I'm sorry to ask such a basic question but I could not find a clear answer in others' questions:
I have a class Foo
public class Foo {
private Integer id;
...
|
|
I've a little experience with JSF and I would like to know the best practice to build a classic crud application with search capabilities. In particular I 'm in doubt about ... |
how to integrate jsf with hibernate,send me an example.
|
I need to implement a content tree with context menu (add, delete, edit) in JSF 2.0. Please suggest me some components. The tree node should be an object like (Data, ID). ... |
Please refer to the "RECENT ACTIVITY" in foursquare.com .. a new information pushes the existing info in a panel.
Now my question is how this should ideally be implemented ?
1. By having ... |
I am developing a JSF webapp with Hibernate. I tested with a main class and I can insert in database, but I can't deploy my webapp to Glassfish. It always errors ... |
Am new to JSF and JPA can anyone guide me with best sites to learn both in a easy way.
Am a beginner in both the topics.
Thanks,
Jayaramachandiran.
|
I am trying to implement an audit trail functionality for my web application that records:
- lastModified (timestamp)
- modifiedBy (user information)
- userComment (reason for value change)
for each of my input fields (input fields are spread ... |
I'm new with JPA so I need to set in my JSF 2 project.
I'm using a GlassFish Server Open Source Edition 3.1.1, Eclipse Java EE Developers. I already install the Hibernate ... |
My idea is : I have a bean (UserBean) which have some attributes to help me validate before I set into the entity User. I'm doing that to reuse the validate ... |
Here is my scenario:
I have my-jsf-app.war (JSF 1.2 application) and daos-and-entities.har (Hibernate 3.3.1) deployed to a JBOSSAS 5 server. What I want is to have some sort of change log in ... |
I’ll try to explain my problem more precisely
I am using hibernate with jsf web application. On first load of page I load a database entry with its children and children of ... |
I am using a hibernate application to store data in Postgres database I have created HBM file from POJO. The table consist of ID which is bigserial identically it should be ... |
I'm trying to work at a Roles script in JSF. For my set-up I have the following JPA tags in the class UserType:
@ManyToMany
@JoinTable(name = "Usertype_Permissions",
joinColumns = {
@JoinColumn(name ...
|
|
Don't put too much importance on the fact that you're using JSF. There's not that much magic there. The old tried-and-true techniques still can generally be used. On the other hand, JSF does make it easier to tie some things together. Specifically, you can construct an application-scope bean that manages Hibernate and init things that way. I'm using JDO, which has ... |
|
Originally posted by Larry Nelson: How well does JSFs work with other technologies such as Hibernate, Struts or Spring? Hi Larry, Struts is the web application framework that came before JSF. The authors of the JSF spec recommend that if you are starting a new project you should prefer JSF over Struts. There is a Struts-JSF bridge, if you need to ... |
JSF doesn't cover database access, so I would develop the web front end in JSF irrespective of database layer. You would then access your database layer as Hibernate objects from within your backing beans. If you want to have a layer of independence so you can use something other than Hibernate, I would suggest you use a DAO type of facade. ... |
Well the good thing is using JPA is the same no matter where you use it, becuase you are using JSF has no bearing on the matter. Your use of JPA will be in your Plain Old Java objects, and not in any jsp/html/xhtml pages. As far as how to set up JPA and use it, there are lots of tutorials ... |
|
|
Well, how well do you know eclipse? If you know Eclipse, running Hibernate is as easy as putting the right jar files on the classpath, and then compling and running some code. Here's a simple tutorial that shows you how to use Hibernate without any IDE at all - just the JDK and the distribution files from hibernate.org. Getting Started with ... |
|
|
Hi, I would like to rate some items with score from 1 to 10, but item can be rated only once by one user. I have a user class and an item class. What would be the best solution for this problem? I use hibernate in my application. Do you know any ready to use solutions? I would be grateful for ... |
Yes you can use hibernate without Spring. However, it's a lot less fun. Spring automatically handles a lot of grunt work for you, including making sure that things are cleaned up properly. It helps with transaction control and normalizes error exceptions. Plus it makes code reuse and testing easier, since you can wire in alternate modules without having to change program ... |
Welcome to the JavaRanch, Ramil! I was scratching my head over what you meant by "doing a simple impute", but then I realized you meant "input". "Impute" is a valid English word, although not that much used except maybe by lawyers these days. It is not recommended to try and use Domain Model (JPA) objects directly as JSF backing beans or ... |
|
Hello. I'm figuring out how to integrate Hibernate with JSF 2.0 and I'm curious what the best practice is, particularly for the beans. I'm using annotations to configure both hibernate and JSF. Currently I'm constructing it so that the JSF managed beans are being persisted with hibernate, with @Transient annotations on any getters that I don't want saved. Is this the ... |
|
|
|
Hi all I am using JSF to display data in a dataTable and the size of the data in the table could be very large (> 50,000 records). Therefore, I need a way to pass the collection to the web layer and evict the object after display. Code: ... |
Hey all, I spend a lot of time searching for books about Struts/JSF with Hibernate integration, but I found nothing. I started programming a small application. I'm able to map classes and so on, I'm not a bloody newbie in Hibernate. I also started a bit working with Struts and JSF, but noch very much. And now I'm serching for a ... |
|
|
|
|
|
I'm just starting to look into using the JSF framework, and I'm a little confused about how Hibernate is meant to be integrated into my code. From what I understand, Hibernate is meant to load data from a database and make it available as Java objects (i.e. POJOs), and then save any changes in their state back to the database. So ... |
Hello, I am in the middle of redesigning an enterprise app. One of the problems we had in our last design is that we used datasets, so a lot of the data was cached there for using up a lot of resources + refreshing other datasets when inserting to another one all this extra caching.. In the redesign I am using ... |
. . . <% try{ HibBean data = new HibBean(); Iterator i = data.getList().iterator(); Session sessionH = HibernateUtil.getSessionFactory().getCurrentSession(); sessionH.beginTransaction(); . . (show data from database) ... |
|
Hi there, This is our first time to use Hibernate on our new project, but now we have some problem on the project organization. One of our co-workers insists to separate business layer (model and dao) and web beans into two projects. He put model and dao into a business layer project, and created a business.jar. Then put the jar into ... |
public List projectNames() { Criteria criteria = this.getSession().createCriteria(User.class) .setProjection( Projections.projectionList(Projections.projectionList() .add( Projections.property("user_ID")) .add( Projections.property("user_Name")) ); ... |
|
Hi, Tnx hiwa...just the problem in ReportsBean. I just take away some unnecessary try-catch and found out it worked... My next problem is that : I can't displayed the queried value in the jsp. I tried to make this value a field of the object ReportsBean so I can call it up in the jsp page. Here's the jsp code: |
|