Coder Social home page Coder Social logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024

Original comment by [email protected] on 18 Jun 2010 at 10:10

  • Changed state: Accepted
  • Added labels: Version-1.0.5
  • Removed labels: Version

from slim3.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024

Original comment by [email protected] on 18 Jun 2010 at 11:37

  • Changed state: Fixed

from slim3.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
The Rev#r1292 seems to have DatastoreUtil#replacePackageName and 
ModelMetaClassName#replacePackageName both replace the FIRST occurrence of 
".model." with ".meta.". The meta of xxx.model.yyy.model.ZzzModel will be 
xxx.meta.yyy.model.ZzzModel. Am I right? Is there any special design 
consideration? 

Isn't it more intuitive that the meta of xxx.model.yyy.model.ZzzModel becomes 
xxx.model.yyy.meta.ZzzModelMeta ?

Original comment by [email protected] on 18 Jun 2010 at 1:23

from slim3.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
Correct a mistake in the previous comment.

> The meta of xxx.model.yyy.model.ZzzModel will be xxx.meta.yyy.model.ZzzModel
The meta of xxx.model.yyy.model.ZzzModel will be xxx.meta.yyy.model.ZzzModelMeta

Original comment by [email protected] on 18 Jun 2010 at 1:32

from slim3.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
> The meta of xxx.model.yyy.model.ZzzModel will be 
xxx.meta.yyy.model.ZzzModelMeta.
> Am I right?

Yes you are.

> Is there any special design consideration?

It's just rule, no special design consideration.

> Isn't it more intuitive that the meta of xxx.model.yyy.model.ZzzModel becomes
> xxx.model.yyy.meta.ZzzModelMeta ?

What kind of rule do you recommend?

Original comment by [email protected] on 18 Jun 2010 at 10:49

from slim3.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
Some of the names of packages in our project are <project.root>.controller, 
<project.root>.dao, <project.root>.dao.impl, <project.root>.model, etc.

We put the corresponding slim3 implementation classes into the slim3 
subpackages listed below.

<project.root>.controller.slim3
<project.root>.dao.impl.slim3
<project.root>.model.slim3

If some other framework (for example, twig) is used, the subpackage names will 
be changed (from slim3 to twig) accordingly. 

The original slim3gen convention demands that we put model classes into 
<project.root>.model.slim3.model subpackage and the generated meta classes in 
<project.root>.model.slim3.meta. The original slim3gen rule and  and our 
package hierarchy are very intuitive.

The Rev#r1292 fix will put the meta classes into 
<project.root>.meta.slim3.model subpackage. The behavior will break the package 
hierarchy because <project.root>.meta package is for slim3 only and the 
'.slim3.model' postfix becomes redundant and unnatural now.

My opinion is that the original slim3gen rule which replace the LAST occurrence 
of '.model.' with '.meta.' is better at least in our case.

Thank you for quick fix and responses to this issue.

Original comment by [email protected] on 18 Jun 2010 at 11:42

from slim3.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
Your request is reasonable.
I fixed it.

Original comment by [email protected] on 19 Jun 2010 at 2:01

from slim3.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
Thank you very much! I will compile the slim3.jar from the current slim3 trunk 
source code and use it till the official 1.0.5 is released. 

Original comment by [email protected] on 19 Jun 2010 at 3:04

from slim3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.