[java ee programming] JPA:simple method to get all QUERYSET for a entity

2009-04-14 Thread Coonay
import javax.persistence.Entity @Entity public class Note implements IsSerializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String notePoster; } what is the simple method(simple means the least code) to get the all records for entity

Re: [BULK] [java ee programming] JPA:simple method to get all QUERYSET for a entity

2009-04-14 Thread Bill Gordon
1. Add a NamedQuery to the class: @NamedQueries{( @NamedQuery (name = Note.listAll, query = SELECT n FROM Note n) )} 2. Use JPA code like this: ListNote listAll { em = getEntityManager(); ListNote theList = null; try { Query q = em.createNamedQuery(Note.listAll);

[java ee programming] Re: anyone interesting in about soa

2009-04-14 Thread Bill Gordon
Why are you asking us to do your homework? Anyway, here is a usable reference: Design Patterns Explained, isbn 0-201-71594-1 On Apr 13, 2009, at 11:24 AM, Erdem Bozbağ wrote: I need three examples for each one 1. Design Pattern Language 2. Design Standard 3.

[java ee programming] LAB-4215

2009-04-14 Thread Biljana Biljana
Hi!   I saw that we dont have example pictures in lab exercise, or in homework. But how we know that our program is good?   Regards, Biljana --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Java EE (J2EE)

[java ee programming] Re: LAB-4215

2009-04-14 Thread Biljana Biljana
Hi! I runed struts-template, but first made some changes in  templates.css, it is:  font_weight:normal; font_style:normal; like Karl said, and   before A.link I added one square bracket, and errase one after   A.active{ } block, that is all I done and it works! Regards, Biljana --- On Tue,

[java ee programming] Re: LAB-4215

2009-04-14 Thread Karl
The problems in the following samples in this same module get much worse. Still unable to resolve. See long past unanswered questions... ~Karl --- On Tue, 4/14/09, Biljana Biljana biljana_b...@yahoo.com wrote: From: Biljana Biljana biljana_b...@yahoo.com Subject: [java ee programming] Re:

[java ee programming] tiles-blank-struts1-1

2009-04-14 Thread biljana_bljn
Hi! I copied from struts-template: class folder in WEB-INF commons-fileupload.jar commons-lang.jar commons-validator.jar jakarta-oro.jar, I add library from global Struts 1.2... But when I try to run tiles-blank-struts1-1 I got this error: init: deps-module-jar: deps-ear-jar: deps-jar:

[java ee programming] Re: tiles-blank-struts1-1

2009-04-14 Thread lisandrodc
I search a way more easy:right click in the project, to search (resover...) and there is a way for select the '.jar' and resolve the dependences of libraries. Regards Lisandro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[java ee programming] Re: tiles-blank-struts1-1

2009-04-14 Thread Karl
well, it's easy if you can actually find the libraries that need to be resolved already on your system. Maybe you will be luckier then myself, but you will most likely find that other samples in this lab module much less obvious fix. Let me know how 'tiles-channel' works out for you. ~Karl

[java ee programming] Lab-1020 Project Property Problem

2009-04-14 Thread Jon
When trying to modify the project to add the derbyclient.jar the 1020_javajdbc\javajdbc\samples\JDBCSamples\nbproject \private.properties file tells me access denied. Has anyone else had this problem with this lab? --~--~-~--~~~---~--~~ You received this message