Liferay
Sign In
Language
Settings
Home
Sign In
Home
About Us
Leadership
Careers
Awards & Recognition
Contact Us
Site Map
Products
Liferay Product Overview
Liferay Portal
Services
Training
Consulting
Support
Partners
Services Partners
Technology Partners
Solutions Partners
Become a Partner
Community
Blogs
Forums
Wiki
Docs
Documentation
Downloads
Liferay Portal
Liferay Social Office
Forums
Come, sit. Chat with us.
Blogs
Forums
Wiki
Docs
Categories
Recent Posts
Statistics
Categories
»
Liferay Core Developers
»
ServiceBuilder entities required to start with Capital letter from 4.3.6?
Threads [
Previous
|
Next
]
ServiceBuilder entities required to start with Capital letter from 4.3.6?
ServiceBuilder entities required to start with Capital letter from 4.3.6?
Jesper W
12/6/07 10:08 AM
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
Brian Chan
12/6/07 4:02 PM
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
Jesper W
12/6/07 9:30 PM
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
Brian Chan
12/6/07 11:55 PM
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
Brian Chan
12/6/07 11:56 PM
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
Jesper W
12/7/07 8:34 AM
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
Jesper W
12/14/07 2:20 PM
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
Brian Chan
12/14/07 6:33 PM
Jesper W
Rank: Jedi Master
Posts: 287
Join Date: 3/25/07
Recent Posts
ServiceBuilder entities required to start with Capital letter from 4.3.6?
12/6/07 10:08 AM
LEP-4397 highlights a change in the naming requirements for entities. (See my last comment there)
For some external developers this will mean renaming entities and modifing large amounts of code, patching database content and also in some instances having external links to certain servlet paramters no longer resolve.
Again, I believe since it was not previously a requirement it should not be made so all of a sudden.
Removing the if() in line 84 of portal-kernel\src\com\liferay\portal\kernel\util\ClassUtil.java would fix this, but I won't check that in without discussion/approval here.
/jesper
±0
(0 Votes)
Sign in to vote.
Top
Brian Chan
Rank: Jedi Council Member
Posts: 721
Join Date: 8/4/04
Recent Posts
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
12/6/07 4:02 PM as a reply to Jesper W.
Hi Jesper,
LEP-4397 should have been a change only in 4.4.x. It also wasn't supposed to make it so that the generated code is any different, just that the pattern for the generated code is now in a freemarker template instead of in a java class.
I don't think we need to change ClassUtil ? It should just be a change in the FTL no?
±0
(0 Votes)
Sign in to vote.
Top
Jesper W
Rank: Jedi Master
Posts: 287
Join Date: 3/25/07
Recent Posts
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
12/6/07 9:30 PM as a reply to Brian Chan.
The FTL's are OK.
The issue is that ServiceBuilder uses formatter which uses ClassUtil to find out which class imports can be removed.
getClasses() doesn't count classes that doesn't begin with a capital letter as classes, and thus the imports get removed, which causes the generated code not to compile.
/j
±0
(0 Votes)
Sign in to vote.
Top
Brian Chan
Rank: Jedi Council Member
Posts: 721
Join Date: 8/4/04
Recent Posts
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
12/6/07 11:55 PM as a reply to Jesper W.
Ahh... the import stripper
Yes. I think it'll be fine for you to check in your fix. That class is just used for source formatting. Thanks for noticing that Jesper.
±0
(0 Votes)
Sign in to vote.
Top
Brian Chan
Rank: Jedi Council Member
Posts: 721
Join Date: 8/4/04
Recent Posts
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
12/6/07 11:56 PM as a reply to Brian Chan.
Btw.. you should put up your avatar. Cause I just think of a "question" mark when I think of your name.
±0
(0 Votes)
Sign in to vote.
Top
Jesper W
Rank: Jedi Master
Posts: 287
Join Date: 3/25/07
Recent Posts
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
12/7/07 8:34 AM as a reply to Brian Chan.
Oops will have to get myself a haircut then....
±0
(0 Votes)
Sign in to vote.
Top
Jesper W
Rank: Jedi Master
Posts: 287
Join Date: 3/25/07
Recent Posts
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
12/14/07 2:20 PM as a reply to Brian Chan.
There you go.... Look! No hair!
±0
(0 Votes)
Sign in to vote.
Top
Brian Chan
Rank: Jedi Council Member
Posts: 721
Join Date: 8/4/04
Recent Posts
RE: ServiceBuilder entities required to start with Capital letter from 4.3.
12/14/07 6:33 PM as a reply to Jesper W.
±0
(0 Votes)
Sign in to vote.
Top