I've solved it through Spring and Struts2.
1. Define your property in maven.
/some/path
2. Create some application property file and put into into the
src/main/resources folder.
Add the following property which will be passed to your application by
Spring's
PropertyPlaceholderConfigure
Does anyone know how to pass a property that is set in pom.xml to a JSP page.
In other words, how can I display my custom pom properties in a JSP page?
Scenario: In my pom.xml, I want to set a relative path to a gwt script which
changes depending on the environment. In Maven pom:
/some/Path
Is there actually any progress here? I regularly run into a problem with
dbunit whose error feedback
doesn't help much.
An error message as the following does not tell me where in my file to
search for the error:
Embedded error: java.sql.SQLException: Incorrect string value:
'\xE2\x89\xA5b e...'
Look into the prod profile. In principle you can use the "skip" switch.
Below is an excerpt of a project of mine. It skips tests, database creation
and database population. Note that the "drop" property in hibernate3 plugin
must be set to 'false'.
DBUnit with standard parameters is fine, when you use it for testing only.
But sometimes, I need to repopulate the database which is read from an
auto-generated
xml file. As this file is 2MB big (and it is growing), dbunit:operation took
quite long resulting in
in an overall time of 11:30 minutes
Do you have any recommendation for a multi-select combo box with
autocomplete? I'm searching for a UI
Tag similar to the one I have seen in the SuperPoke application on Facebook
(see attachement).
I'm using Struts2 as weblayer. I'd be happy with a simple and quick Struts2
non-ajax tag. But I am
on Resources contains only the standard phrases
webapp.version=Version ${pom.version}
copyright.year=${copyright.year}
Martin
Kropp, Henning wrote:
>
> Just a shut in the wild, but maybe germane is the default language and
> the failure messages are missing in english locale?
Last information, before I give up on that problem:
I oberved that this error occurs only(!) when the locale is set to English!
If the locale is set to any language but English then the error messages
are displayed in the correct language.
Puh ... what now?
Martin
--
View this message in con
And by the way, can anyone tell me why I have two(!) error message?
Martin
--
View this message in context:
http://www.nabble.com/Locale-problem-after-Struts2-validation-tp19900222s2369p19912806.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
-
Problem: After validating a form, the error message is always displayed in
German
although I have set a different locale and the rest of the page is displayed
in English.
Even the fallback locale is set to English. I must have introduced
this problem somewhere, but I have no idea where. Here are
Is it possible to reference a property inside an
ApplicationResources*.propeties file.
I'd like to reuse some properties in more complex phrases.
For instance:
# List of vehicles
vehicle=Vehicle
vehicle.car=Car
# car form
# car.label.type=
# car.accident=This had an accident.
I tried to goog
Any chance to get a larger versipon of the AppFuse logo? I came across this
link, but
I wasn't able to open the attached pdf document.
http://www.nabble.com/Fwd%3A-AppFuse-Tutorial-Quick-Reference-td4723793s2369.html#a4725659
I'd like to use the logo for my FastDial FireFox add-on. Would also be
Maybe, someone else
can give you a better hint.
Sorry,
Martin
Tarjei Huse wrote:
>
> Hi,
>
> Martin Homik wrote:
>>
>> Change the the default database to hsqldb in the end of the pom:
>>
>>
>>
>> org.dbunit.ext.hsqldb.HsqldbDataTypeFactory
Check your sample-data.xml for correct syntax and data. dbunit tries to
populate your
database and fails. This can also be due to a mispelled table or column name
or due
to a foreign key problem. So, check your jpa annotations and compare with
the sample
data file.
MH
cesto wrote:
>
> Hi,
>
Change the the default database to hsqldb in the end of the pom:
org.dbunit.ext.hsqldb.HsqldbDataTypeFactory
CLEAN_INSERT
org.hibernate.dialect.HSQLDialect
tmp
hsqldb
hsqldb
1.8.0.7
org.hsqldb.jdbcDriver
sa
Add a profile for production use, such as:
prod
According to "Spring in Action" (p. 303) you can use annotations such as::
/**
* @@org.acegisecurity.SecurityConfig("ROLE_ADMIN")
*/
public void doSomethingSecure() {
//
}
Note, acegisecurity is springsecurity today.
It might not be supported out of the box. Then, you need to
1. add a
Copy the index.jsp from target/work/webapp into your project and change
to where you want to go.
Martin
Mauriff wrote:
>
> Hello, I need know how redirect to page after to login.
> I read about Acegi but the redirection it's set in applicationContext.xml
> with the bean authentication
I don't know what happens when you remove the other AJAX frameworks. I simply
added jQuery to default.jsp in decorators folder.
jQuery.noConflict();
The jQuery.noConflict instruction is important when you want to keep the
other AJAX frameworks.
Note, that afterwards you have to
tunately, there is little documentation on exporting tables. However,
here is a link to the
official example pom:
http://svn.codehaus.org/mojo/trunk/mojo/dbunit-maven-plugin/src/example/pom.xml
Cheers,
Martin
Martin Homik wrote:
>
> Hmmm ... I couldn't find any information. And the maven p
nit-maven-plugin/
>
> Matt
>
> On Wed, Sep 3, 2008 at 8:15 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> Is it possible to import/export/drop/ (include/exclude) single tables
>> with
>> dbunit?
>> Possibly via ?
>>
>> Scenario: In a ni
Is it possible to import/export/drop/ (include/exclude) single tables with
dbunit?
Possibly via ?
Scenario: In a nightly process I drop the tables, get data from another
application,
create a flat xml default-data.xml file and repopulate the database. Since I
do not want
to loose users/roles, I'
I found another solution. If you have full source, then add the following get
method to GenericDao:
protected Class getPersistentClass() {
return persistentClass;
}
This allows to retrieve the persisted class' name in your DAOs. So you can
add to your ConfirmDetai
Another related question is how to state Hibernate queries depending on
Generics. For instance, you would like to state a generic query in
ConfirmDetailsDaoHibernate:
public List findAllOrderByAlpha() {
return getHibernateTemplate().find(
"from ConfirmDetails c order by c.n
Did you implement any test methods for ConfirmationDetails? I followed the
description in this thread
which worked fine for the compilation but my dao tests failed. Translated to
your domain,
my test class looks like follows:
public class ConfirmationDetailsDaoTest extends BaseDaoTestCase {
Same error message (with managers), different cause. I simply forgot to
declare my test method as "public".
Martin
--
View this message in context:
http://www.nabble.com/Action-Tests-suddnly-failing-with-InitializationError0-tp12853062s2369p19179899.html
Sent from the AppFuse - User mailing lis
See here, if you want to change it in your pom:
http://www.nabble.com/AppFuse-to-production-to17339383s2369.html#a19104092
Martin
Joey122 wrote:
>
> This is annoying - I ve specified in POM not to drop the database as I
> have data loaded up in there.
>
> I ve done this by using the following
Look into your IDEs settings whether it saves the file in UTF. I had similar
problems on Windows XP with Eclipse. By default, it took a different
encoding.
Martin
alibehzadian wrote:
>
> Hi,
>
> I used Persian text right inside JSP. I saved JSP file with UTF-8 encoding
> and then I build the
Just to complete. Add the following plugin overrides to the prod profile.
Can it be simplified?
maven-surefire-plugin
true
org.codehaus.mojo
dbunit-maven-plugin
1.0-beta-1
true
org.codehaus.mojo
hibernate3-maven-plugi
Each row in my display:table contains a link. The link derives from a URI
stored in the POJOs.
To generate the link, I need to cut off the prefix. Here is an example:
1. The POJOs have a uri property which have the following form:
http://localhost:8080/2008/ontology/ontology.owl#Calculate_ra
Did you uncomment the lazyLoadingFilter and its mappings in web.xml?
By the way, you might know this, there is a tutorial on using Dojo in
AppFuse.
I have not tried it so far. But, just in case. Maybe there is something
helpful.
http://appfuse.org/display/APF/Ajax
Martin
alibehzadian wrote:
Try this post:
http://www.jroller.com/eyallupu/entry/hibernate_exception_simultaneously_fetch_multiple
I ran into a similar problem a few days ago. I made the mistake to use
entity inheritance + eager fetching on a list. It seems that this is not
accurate. Because the @ColumnIndex approach did no
:
>
> AppFuse is configured by default to use Zero Configuration, which
> means you don't have to use XML or annotations. Just name your classes
> XXXAction and put them in the package defined in your web.xml.
>
> Matt
>
> On Fri, Aug 8, 2008 at 2:44 AM, Martin Ho
Cens wrote:
>
> Hi,
> I agree with you sadsadsadsa that Appfuse has a high learning curve and
> that
> there should be a FAQ section on the site and that the tutorial should be
> fool-proof. Ok, that's all true, but anyway I would not say it is a
> failure.
>
The FAQ is here. A good point to l
Dear all,
I'd like to ask the community whether you have any experience with AppFuse
and Struts2 annotations.
The AppFuse tutorial introduces only the xml-based declarative architecture.
Also, in the book "Struts2 in Action" the authors use the xml-based approach
for educational reasons, but th
mraible wrote:
>
> On Wed, Aug 6, 2008 at 3:33 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> Injection of beans outside Spring does not work, that's clear. But I was
>> surprised to learn that it is not possible to inject beans in
>> *ManagerImp
Matt, maybe you add the following link to the documentation.
The described approach differentiates between surefire/generic
debugging. Both approaches worked pretty well for me.
http://docs.codehaus.org/display/MAVENUSER/Dealing+with+Eclipse-based+IDE
Before, I tried the approach you link to on
ead of yours.
>
> Matt
>
> On Wed, Aug 6, 2008 at 8:50 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> Not actively. I looked into the file and noticed that classes in my
>> project
>> package have the debug level
>> "DEBUG" .That means t
e in your WEB-INF directory
> (after building your WAR)?
>
> Matt
>
> On Wed, Aug 6, 2008 at 1:22 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> I don't understand your answer. All Struts2-AppFuse projects are
>> preconfigured with a
>> taglib pointi
, the
xwork2 package might also be a good candidate.
Cheers,
Martin
PS: Nice birthday present. Happy birthday. :-)
mraible wrote:
>
> Have you tried modifying src/main/resources/log4j.xml?
>
> On Wed, Aug 6, 2008 at 3:50 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>
How can I change the log settings in order to be able to print log messages
in my action classes. Though I use log.fatal(), log messages don't show up
in the console when running jetty:run-war.
Thanks for help.
Martin
--
View this message in context:
http://www.nabble.com/Change-log-settings-
Injection of beans outside Spring does not work, that's clear. But I was
surprised to learn that it is not possible to inject beans in *ManagerImpl
and *Action classes. Am I completely wrong?
In my app, I have a competency action class which is in charge of putting a
competency's names on the va
.
So I changed it to uri="http://www.appfuse.org/tags/spring";. It works, but I
don't know why.
Martin
mraible wrote:
>
> Because you're using Spring, not Struts? ;-)
>
> Matt
>
> On Mon, Jul 28, 2008 at 9:41 AM, Martin Homik <[EMAIL PROTECTED]> wrot
Alternatively, you could use Spring's PropertyPlaceholderConfigurer to
externalize parts
of your configuration. It bases on property files rather than on xml files.
Martin
--
View this message in context:
http://www.nabble.com/how-to-read-a-new-config-file-tp18679204s2369p18845596.html
Sent
AppFuse is complex. AppFuse is not easy. AppFuse is great.
@Tim: AppFuse is a great introduction to Spring, Hibernate, Struts2, Maven,
JPA. Only then I dived
deeper into the technologies behind AppFuse. So, from a newbie perspective,
I strongly recommend
the AppFuse tutorial. You can quickly go
Oh boy ... this was a long journey. Finally, I came up with a third
alternative: a filter.
I came across a few posts and found the LocaleFilter. In principle, I copied
it and added a few more
lines. Now, the workflow is like this:
1. check if a remote user exists; if not then process as LocaleF
Setting: Basic-Struts2-AppFuse 2.0.2-with core classes
In my scenario, my User has a default language which might differ from the
browser's locale. Hence, I'd like to change the locale programmatically
relative to the user's default language. There are two ways to do this:
1. Store the locale pr
H ... fixed. But why?
Changed
<%@ taglib uri="http://www.appfuse.org/tags/struts"; prefix="appfuse" %>
To
<%@ taglib uri="http://www.appfuse.org/tags/spring"; prefix="appfuse" %>
Martin
--
View this message in context:
http://www.nabble.com/Can%27t-resolve-taglib-in-taglibs.jsp-
I've been working on my project happily until I ran a "mvn clean" this
morning. Now, I cannot access the signup page nor run a Login integration
test.
I get the info that a taglib cannot be resolved.
Login:
[INFO] [talledLocalContainer] 28.07.2008 16:10:56
org.apache.catalina.core.StandardWra
Here is one more, Morph. Unfortunately, I don't have experience with Morph,
but their description sounds pretty nice.
http://www.mor.ph/
Martin
--
View this message in context:
http://www.nabble.com/Good-Java-Web-Hosts-tp18644536s2369p18652657.html
Sent from the AppFuse - User mailing list arc
You might refer to The AppFuse Primer written by David Whitehurst. I just
looked up, and in fact, he introduces an example with an one-to-many
relationship. However, he does not continue the example for a Spring MVC
version.
http://www.sourcebeat.com/books/appfuse.html
http://tinyurl.com/56tptc
if an existing library already exists.
>
> Matt
>
> On Tue, Jul 15, 2008 at 5:26 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> Hi there,
>>
>> I'd like to add language information to the user's profile. The
>> signup/userForm JSP should u
Hi there,
I'd like to add language information to the user's profile. The
signup/userForm JSP should use a very similar construct like the
"appfuse:country" tag for a drop-down list. Do you know any taglib, that
offers that functionality? The alternative would be to implement it myself.
My safest
fuse/model. If it's there, Struts is
> probably loading one from a JAR instead.
>
> Matt
>
> On Mon, Jul 14, 2008 at 11:55 PM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> Matt,
>>
>> there is no Address-validator.xml in AppFuse. There is only
>
rproject-version/WEB-INF/classes to src/main/resources.
>
> HTH,
>
> Matt
>
> On Mon, Jul 14, 2008 at 8:16 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> I'd like to change the user information in signup/profile. In principle,
>> I'd
>
I'd like to change the user information in signup/profile. In principle, I'd
like to hide the State/Provence input field. So I did the following steps:
1. copied User validation from target to src folder
2. out-commented the field with name "user.address.province" in the user
validator
3. copied
tmp/comped' then
everything is fine and I don't mind to have a tmp folder in my project.
Martin
mraible wrote:
>
> What is your JDBC URL for HSQLDB?
>
> Matt
>
> On Tue, Jul 1, 2008 at 3:48 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> I
I've followed a few threads on this topic, but none seems to provide a
solution. I have a clean AppFuse 2.0.2 + Basic+ Struts2 project. When I run
'mvn -Phsqldb test', I get the following exception:
[INFO] Configuration XML file loaded:
file:/d:/ws/appfuse/comped/src/main/resources/hibernate.cfg.
Hi Stefan,
I ran into a
http://www.homik.de/think/index.php/2008/04/08/automatic-timestamping-of-persisted-data/
similar problem a while ago. I think, the problem is that Hibernate
supports these methods for the corresponding lifecycle event only for
http://www.hibernate.org/hib_docs/ejb3-api
I have integrated tinyMce with appfuse. That's fine as textareas are replaced
by a nice editor. The inclusion into my jsp pages is not invasive. You have
only to add the following to your :
tinyMCE.init({
mode : "textareas"});
I'd like to pick up this topic again. Could not find a proper answer
elsewhere. Some threads were talking about omitting reserved words. But I
can't see the problem in my case.
So, you you guys have a clue what is going on?
MH
Martin Homik wrote:
>
> Today I came across a
I solved it with a less elegant work-around. Instead of overriding
*Manager.save(..). I've extracted all my custom lines of code to a new
method *Manager.prepare(...). Now, I have to call both in my action
classes:
manager.prepare(...);
manager.save(...)
Not nice, but seems to work.
MH
--
Vi
ireBooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
mraible wrote:
>
> Can you post the full stack trace?
>
> Matt
>
> On Tue, Jun 17, 2008 at 6:13 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>
>>
s the proper way to override
a save method in the manager?
MH
Martin Homik wrote:
>
> In my managers, I override the save method. There is no problem in
> production state, that is jetty:run-war runs perfectly well. But in the
> test-cycle, I get a ClassCastException. So, the proble
I override the test method in my managers. When testing, I get a
ClassCastException. There is no problem in production state, that is
jetty:run-war runs perfectly well. So, the problem must be related to the
mocks in test classes.
Here is my manager class:
public class SurveyValueManagerImpl
the same error and I found that a compilation error in one of my
> classes left my ROLE table without any value when I ran mvn install... is
> your ROLE table empty or missing the entry for ROLE_USER?
>
>
> Martin Homik wrote:
>>
>> Hi Matt,
>>
>> 1. secur
I managed to merge my project with a fresh Basic/Struts2/AppFuse-2.0.2
checkout.
Jetty is up and running. No login problems. I have a few issues with save
tests at
service layer, but I hope to solve them myself.
Martin
Martin Homik wrote:
>
> I still cannot login with "use
a passwordEncoder bean properly defined in
> applicationContext-service.xml. You could change your sample-data.xml
> to use plain text passwords to see if password encryption is turned
> on.
>
> Matt
>
> On Fri, May 16, 2008 at 3:46 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
ow whether they have any affect, but
they could.
If I don't manage to fix the login problem, I'll give up the update and go
on with 2.0.1.
Cheers!
Martin Homik wrote:
>
> I managed somehow to run my project, Things that I made differently:
> * as I run war:inplace I had a f
I managed somehow to run my project, Things that I made differently:
* as I run war:inplace I had a few files that needed an update.
--> checked out a fresh project and made a war:inplace to get all the up
to date files
* replaced my security.xml by the new one
* in footer.jsp: replaced by
.
*
on't have any files in
> WEB-INF/classes and WEB-INF/lib.
>
> Matt
>
> On Wed, May 14, 2008 at 8:45 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> I followed the AppFuse upgrade instructions and ended up with the
>> following
>> exceptio
I followed the AppFuse upgrade instructions and ended up with the following
exception. Never mind about my project path name which has a "ACEGI"
substring. I merely wonder why Jetty looks for
org/acegisecurity/providers/ProviderManager. I have replaced all
"org.acegigisecury" by "org.springframew
tated somewhere in the online tutorial.
Why not extend the appfuse plugin by something that performs all three
steps?
Martin
mraible wrote:
>
> You could try deleting
> src/main/webapp/WEB-INF/classes/ApplicationResources*.
>
> Matt
>
> On Tue, Apr 29, 2008 at 1:45 AM, Mart
omething in
src/main/resources/ApplicationResources.properties?
Thanks to everybody for useful explanations in this thread!
Martin
mraible wrote:
>
> On Mon, Apr 28, 2008 at 1:20 PM, Martin Homik <[EMAIL PROTECTED]> wrote:
>> Another question: What's wrong with fmt:message when used with
I see your point. On the long run, your advice will pay off, I guess.
Thanks a lot for your explanations!
Martin
alexworden wrote:
>
> On Mon, Apr 28, 2008 at 11:11 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> I actually tried to solve the problem by using OG
th jetty:run-war.
Strange.
Martin
mraible wrote:
>
> Have you tried uncommenting the OpenSessionInViewFilter in your web.xml?
>
> Matt
>
> On Mon, Apr 28, 2008 at 12:11 PM, Martin Homik <[EMAIL PROTECTED]> wrote:
>>
>> I actually tried to solve the p
they?
Martin
mraible wrote:
>
> You should be able to get members.size() if you use OGNL and a
> tag. You can also use JSTL functions and the "length"
> function.
>
> http://java.sun.com/j2ee/1.4/docs/tutorial-update2/doc/JSTL8.html
>
> Matt
>
> On Mon,
Problem:
* I have a "Group" POJO which keeps a list of its "members" (ManyToMany
relation).
* The GroupAction class stores a list of my current groups and it has a
group field for
accessing information of a single group. In principle, the stucture is
very similar to the
PersonActi
I am writing a simple blog application. Each entry has a title and a body.
The body may contain html elements such as "". However, if you add the
following value into your sample data, the html elements are cut off and
hence not inserted into the database:
London is a great city.
The soluti
Daniel.Rodriguez wrote:
>
> Follow Matt's advice. However be extremely carefull with the FCKeditor
> JSP taglib. It requieres you to create a context named "FCKeditor" in
> your container and point the JSP tags there. The exact info is in
> http://wiki.fckeditor.net/Developer's_Guide/Integr
The AppFuse tutorial is a great start but soon you'll want to do more and
then you rely on online resources. The struts2 homepage is a start, but
personally, I do not like as it is very unstructured. However, you should
check the examples, which are to some extent quite useful. You'll get more
exe
Today I came across a somehow strange behavior. When I run my with 'mvn
jetty:run-war' everything is fine. But, when I run it with tests off
'-Dmaven.test.skip=true'to shorten start-up, I get a Data Access Failure
with the message
"could not execute query; nested exception is
org.hibernate.exc
Can anyone explain the mechanism of form pre-population. Since I am a newbie,
my experience bases rather on a try-and-error approach. Related to my
request is also my confusion about differences between generated code by
appfuse:gen and the suggested approach in the online tutorial.
I came acros
Hi Matt,
Note, I have suggested a work-around
http://www.nabble.com/forum/ViewPost.jtp?post=16300428&framed=y&skin=2369
here .
Anyway, I ran the following mvn commands on your attached 'myProject'.
1. $ mvn -version
Maven version: 2.0.7
Java version: 1.6.0_01
OS name: "windows xp" version: "5.
an
> Definition(DefaultListableBeanFactory.java:391)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocal
> BeanDefinition(AbstractBeanFactory.java:999)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
> ctBeanFactory.java:233)
> at
>
This does not work for me. If you clean your project and run the tests, it'll
fail.
Maybe, I have just found another not so elegant solution. I copied the
testResource
part and renamed the copy's directory to: src/main/webapp/WEB-INF. Hence,
I ended up with:
src/test
gt;
> The same happens with all my dao tests, be they customised or generic.
>
>
>
> Any ideas?
>
>
>
> Regards
>
> Aled
>
>
>
> From: Aled Jones [mailto:[EMAIL PROTECTED]
> Sent: 18 March 2008 16:37
> To: users@appfuse.dev.java.
sts passed, too, the action tests failed.
4. I changed the testResource directory back to
src/main/webapp
and the action tests pass.
Somehow strange ...
Martin Homik wrote:
>
> I ran into the same problem this morning. Yesterday evening, I have been
> working on a project withou
I ran into the same problem this morning. Yesterday evening, I have been
working on a project without any problems except for the usual problems when
you code new snippets. Today morning, I run the usual tests and all my DAO
tests failed. I followed the proposed instructions in
http://issues.a
Is it possible to extract elements from the hibernate.cfg.xml to
an external file and add some import/include element to include
the snippet.
In my case, I am automatically generating a hibernate.cfg.xml
but I do not want it to replace the original file. Hence, I'd like
to name it something like
I should have known, there is simple solution. :-)
MH
Rob Hills wrote:
>
> Hi Martin,
>
> Martin Homik wrote:
>> Yesterday, I tried to run my AppFuse application with PostgreSQL instead
>> of
>> MySQL. I ran into a CLEAN_INSERT problem which was a result of an
literature afterwards). :-D
See:
http://www.postgresql.org/docs/8.2/static/datatype-character.html
mraible wrote:
>
>
> On Dec 4, 2007, at 1:02 AM, Martin Homik wrote:
>
>>
>> Yesterday, I tried to run my AppFuse application with PostgreSQL
>> instead of
>>
Yesterday, I tried to run my AppFuse application with PostgreSQL instead of
MySQL. I ran into a CLEAN_INSERT problem which was a result of an earlier
mistake. In MySQL I used a longtext type for a description field. This type
corresponds to a column JPA annotation having a length attribute with th
his works with JPA?
>
> Thanks!
>
> Greg
>
>
> Martin Homik wrote:
>>
>> Can anyone tell how to use Entity Listeners in AppFuse? I ran into the
>> same problems as already mentioned in
>> http://www.nabble.com/forum/ViewPost.jtp?post=11144501&framed=y&a
s?
>
> Greg
>
>
> Martin Homik wrote:
>>
>> Can anyone tell how to use Entity Listeners in AppFuse? I ran into the
>> same problems as already mentioned in
>> http://www.nabble.com/forum/ViewPost.jtp?post=11144501&framed=y&skin=2369
>> this thread . Unf
Can anyone tell how to use Entity Listeners in AppFuse? I ran into the same
problems as already mentioned in
http://www.nabble.com/forum/ViewPost.jtp?post=11144501&framed=y&skin=2369
this thread . Unfortunately, nobody posted any solution and I'd like to pick
up that topic.
In my case I want to
The question in my thread is: can only the owning side of a relation invoke
propgation of PERSIST, MERGE, REFRESH?
I have a self-referencing class "Competency". Each competency can have
child competencies and it can be itself a child competency of some other
parent competency.
A "composes" field
log.debug("Deleting provisory object: " + id);
Person person = new Person();
person.setId(id);
action.setPerson(Person);
action.delete();
id=null;
}
}
Nice short quest. :-)
Martin Homik wrote:
>
Let me also add the comment that the test will cause an error if one of the
POJO fields is
annotated with "unique = true". That's because onSetUpBeforeTransaction() is
invoked
before each test and hence populates the database with as many additional
objects as
tests exist.
According to my databa
o be concerned about the backend - they can tell it what they
> want it to return.
>
> Spring AutoMock (http://sourceforge.net/projects/automock) could be
> useful as well - allowing you to mock out the backend when running in
> a servlet container. At least, I think that's the
I do understand that mocks are useful to imitate a certain behaviour of
compononts which are sort of resource-demanding. But, I don't get the value
of using jMock for testing Managers as it is used in the tutorial. Let me
pick a test method:
public void testFindByLastName() {
log.deb
1 - 100 of 105 matches
Mail list logo