Enumeration and Type entity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Enumeration and Type entity

Vikas Mayur-3
Is there any rules/guidelines that can help to decide whether a set of  
values should go in Enumeration or there is need to define a new Type  
entity.
There could be many examples but I have quickly looked at the data in  
EmplPositionType entity. I think this data can also  be maintained in  
Enumeration model.

Any thoughts ?

Thanks,
Vikas

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Enumeration and Type entity

Jacques Le Roux
Administrator
Hi Vikas,

Maybe this link could help ?
http://docs.ofbiz.org/display/OFBTECH/General+Entity+Overview#GeneralEntityOverview-ExtensibilityPattern

Jacques

From: "Vikas Mayur" <[hidden email]>

> Is there any rules/guidelines that can help to decide whether a set of  
> values should go in Enumeration or there is need to define a new Type  
> entity.
> There could be many examples but I have quickly looked at the data in  
> EmplPositionType entity. I think this data can also  be maintained in  
> Enumeration model.
>
> Any thoughts ?
>
> Thanks,
> Vikas
Reply | Threaded
Open this post in threaded view
|

Re: Enumeration and Type entity

David E Jones-3
In reply to this post by Vikas Mayur-3

A generic Enumeration is an alternative to a *Type entity when the  
need for set of data to track is simple and won't need extra  
information attached to it in the future. When those might be the  
case, the *Type pattern is a better way to go.

-David


On Dec 3, 2008, at 6:03 AM, Vikas Mayur wrote:

> Is there any rules/guidelines that can help to decide whether a set  
> of values should go in Enumeration or there is need to define a new  
> Type entity.
> There could be many examples but I have quickly looked at the data  
> in EmplPositionType entity. I think this data can also  be  
> maintained in Enumeration model.
>
> Any thoughts ?
>
> Thanks,
> Vikas

Reply | Threaded
Open this post in threaded view
|

Re: Enumeration and Type entity

Vikas Mayur-3
Thanks Jacques, David.

Vikas

On Dec 3, 2008, at 11:09 PM, David E Jones wrote:

>
> A generic Enumeration is an alternative to a *Type entity when the  
> need for set of data to track is simple and won't need extra  
> information attached to it in the future. When those might be the  
> case, the *Type pattern is a better way to go.
>
> -David
>
>
> On Dec 3, 2008, at 6:03 AM, Vikas Mayur wrote:
>
>> Is there any rules/guidelines that can help to decide whether a set  
>> of values should go in Enumeration or there is need to define a new  
>> Type entity.
>> There could be many examples but I have quickly looked at the data  
>> in EmplPositionType entity. I think this data can also  be  
>> maintained in Enumeration model.
>>
>> Any thoughts ?
>>
>> Thanks,
>> Vikas
>


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Question on XML labels migration

STELTZLEN Charles
Hi all,

I'm on an ofbiz from last year, still with UiLabels properties files.
I would like to know if it's possible/easy  :-) to get the work on XML
labels without a big update (list of patch).

Charles.
Reply | Threaded
Open this post in threaded view
|

Re: Question on XML labels migration

Adrian Crum-2
You'll need the latest UtilProperties.java file.

-Adrian


--- On Fri, 12/12/08, STELTZLEN Charles <[hidden email]> wrote:

> From: STELTZLEN Charles <[hidden email]>
> Subject: Question on XML labels migration
> To: [hidden email]
> Date: Friday, December 12, 2008, 1:34 AM
> Hi all,
>
> I'm on an ofbiz from last year, still with UiLabels
> properties files.
> I would like to know if it's possible/easy  :-) to get
> the work on XML
> labels without a big update (list of patch).
>
> Charles.


     
Reply | Threaded
Open this post in threaded view
|

Re: Question on XML labels migration

Adrian Crum-2
Actually, I sent that reply off too fast. There were some refactorings done recently that are not backwards compatible. You'll need to do a little work on the file to make it compatible.

-Adrian


--- On Fri, 12/12/08, Adrian Crum <[hidden email]> wrote:

> From: Adrian Crum <[hidden email]>
> Subject: Re: Question on XML labels migration
> To: [hidden email]
> Date: Friday, December 12, 2008, 7:01 AM
> You'll need the latest UtilProperties.java file.
>
> -Adrian
>
>
> --- On Fri, 12/12/08, STELTZLEN Charles
> <[hidden email]> wrote:
>
> > From: STELTZLEN Charles
> <[hidden email]>
> > Subject: Question on XML labels migration
> > To: [hidden email]
> > Date: Friday, December 12, 2008, 1:34 AM
> > Hi all,
> >
> > I'm on an ofbiz from last year, still with
> UiLabels
> > properties files.
> > I would like to know if it's possible/easy  :-) to
> get
> > the work on XML
> > labels without a big update (list of patch).
> >
> > Charles.


     
Reply | Threaded
Open this post in threaded view
|

Re: Question on XML labels migration

STELTZLEN Charles
Hi adrian,

Effectively, I imported the last UtilProperties and I followed errors in
order to solve
the compilation problems, so I also imported ResourceBundleMapWrapper,
and then
the project builded correctly.
But the xml are still not imported. So, I'm stuck because I'have no more
errors or things
like that to follow.

But thanks Adrian, I think I will wait the next migration to use this
functionality.

Best regards,
Charles.

Adrian Crum a e'crit :

> Actually, I sent that reply off too fast. There were some refactorings done recently that are not backwards compatible. You'll need to do a little work on the file to make it compatible.
>
> -Adrian
>
>
> --- On Fri, 12/12/08, Adrian Crum <[hidden email]> wrote:
>
>  
>> From: Adrian Crum <[hidden email]>
>> Subject: Re: Question on XML labels migration
>> To: [hidden email]
>> Date: Friday, December 12, 2008, 7:01 AM
>> You'll need the latest UtilProperties.java file.
>>
>> -Adrian
>>
>>
>> --- On Fri, 12/12/08, STELTZLEN Charles
>> <[hidden email]> wrote:
>>
>>    
>>> From: STELTZLEN Charles
>>>      
>> <[hidden email]>
>>    
>>> Subject: Question on XML labels migration
>>> To: [hidden email]
>>> Date: Friday, December 12, 2008, 1:34 AM
>>> Hi all,
>>>
>>> I'm on an ofbiz from last year, still with
>>>      
>> UiLabels
>>    
>>> properties files.
>>> I would like to know if it's possible/easy  :-) to
>>>      
>> get
>>    
>>> the work on XML
>>> labels without a big update (list of patch).
>>>
>>> Charles.
>>>      
>
>
>      
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: Question on XML labels migration

Adrian Crum
What do you mean by imported? With an updated UtilProperties.java file
you should be able to use three file formats: *.properties, Java *.xml,
and OFBiz *.xml. Nothing needs to be imported.

-Adrian

STELTZLEN Charles wrote:

> Hi adrian,
>
> Effectively, I imported the last UtilProperties and I followed errors in
> order to solve
> the compilation problems, so I also imported ResourceBundleMapWrapper,
> and then
> the project builded correctly.
> But the xml are still not imported. So, I'm stuck because I'have no more
> errors or things
> like that to follow.
>
> But thanks Adrian, I think I will wait the next migration to use this
> functionality.
>
> Best regards,
> Charles.
>
> Adrian Crum a e'crit :
>> Actually, I sent that reply off too fast. There were some refactorings
>> done recently that are not backwards compatible. You'll need to do a
>> little work on the file to make it compatible.
>>
>> -Adrian
>>
>>
>> --- On Fri, 12/12/08, Adrian Crum <[hidden email]> wrote:
>>
>>  
>>> From: Adrian Crum <[hidden email]>
>>> Subject: Re: Question on XML labels migration
>>> To: [hidden email]
>>> Date: Friday, December 12, 2008, 7:01 AM
>>> You'll need the latest UtilProperties.java file.
>>>
>>> -Adrian
>>>
>>>
>>> --- On Fri, 12/12/08, STELTZLEN Charles
>>> <[hidden email]> wrote:
>>>
>>>    
>>>> From: STELTZLEN Charles
>>>>      
>>> <[hidden email]>
>>>    
>>>> Subject: Question on XML labels migration
>>>> To: [hidden email]
>>>> Date: Friday, December 12, 2008, 1:34 AM
>>>> Hi all,
>>>>
>>>> I'm on an ofbiz from last year, still with
>>>>      
>>> UiLabels
>>>    
>>>> properties files.
>>>> I would like to know if it's possible/easy  :-) to
>>>>      
>>> get
>>>    
>>>> the work on XML
>>>> labels without a big update (list of patch).
>>>>
>>>> Charles.
>>>>      
>>
>>
>>      
>>  
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Question on XML labels migration

STELTZLEN Charles
By imported, I mean I retrieved the last UtilProperties.java on ofbiz trunck
and I replaced my current UtilProperties.java (I'm not synchronize on
ofbiz trunk).
So, I updated my UtilProperties.java ;)
After that, I had some compilation errors, solved by the same operation
on my
ResourceBundleMapWrapper.java.

And it still not working.

If you tell me that UtilProperties.java update is enough, I suppose that
I have done
something wrong.

Thanks,
Charles.


Adrian Crum a écrit :

> What do you mean by imported? With an updated UtilProperties.java file
> you should be able to use three file formats: *.properties, Java
> *.xml, and OFBiz *.xml. Nothing needs to be imported.
>
> -Adrian
>
> STELTZLEN Charles wrote:
>> Hi adrian,
>>
>> Effectively, I imported the last UtilProperties and I followed errors
>> in order to solve
>> the compilation problems, so I also imported
>> ResourceBundleMapWrapper, and then
>> the project builded correctly.
>> But the xml are still not imported. So, I'm stuck because I'have no
>> more errors or things
>> like that to follow.
>>
>> But thanks Adrian, I think I will wait the next migration to use this
>> functionality.
>>
>> Best regards,
>> Charles.
>>
>> Adrian Crum a e'crit :
>>> Actually, I sent that reply off too fast. There were some
>>> refactorings done recently that are not backwards compatible. You'll
>>> need to do a little work on the file to make it compatible.
>>>
>>> -Adrian
>>>
>>>
>>> --- On Fri, 12/12/08, Adrian Crum <[hidden email]> wrote:
>>>
>>>  
>>>> From: Adrian Crum <[hidden email]>
>>>> Subject: Re: Question on XML labels migration
>>>> To: [hidden email]
>>>> Date: Friday, December 12, 2008, 7:01 AM
>>>> You'll need the latest UtilProperties.java file.
>>>>
>>>> -Adrian
>>>>
>>>>
>>>> --- On Fri, 12/12/08, STELTZLEN Charles
>>>> <[hidden email]> wrote:
>>>>
>>>>  
>>>>> From: STELTZLEN Charles
>>>>>      
>>>> <[hidden email]>
>>>>  
>>>>> Subject: Question on XML labels migration
>>>>> To: [hidden email]
>>>>> Date: Friday, December 12, 2008, 1:34 AM
>>>>> Hi all,
>>>>>
>>>>> I'm on an ofbiz from last year, still with
>>>>>      
>>>> UiLabels
>>>>  
>>>>> properties files.
>>>>> I would like to know if it's possible/easy  :-) to
>>>>>      
>>>> get
>>>>  
>>>>> the work on XML
>>>>> labels without a big update (list of patch).
>>>>>
>>>>> Charles.
>>>>>      
>>>
>>>
>>>        
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Question on XML labels migration

Adrian Crum
Could you be more specific? What is it doing or not doing? Are there any
messages in the logs?

If everything compiles okay, then it should work.

-Adrian

STELTZLEN Charles wrote:

> By imported, I mean I retrieved the last UtilProperties.java on ofbiz
> trunck
> and I replaced my current UtilProperties.java (I'm not synchronize on
> ofbiz trunk).
> So, I updated my UtilProperties.java ;)
> After that, I had some compilation errors, solved by the same operation
> on my
> ResourceBundleMapWrapper.java.
>
> And it still not working.
>
> If you tell me that UtilProperties.java update is enough, I suppose that
> I have done
> something wrong.
>
> Thanks,
> Charles.
>
>
> Adrian Crum a écrit :
>> What do you mean by imported? With an updated UtilProperties.java file
>> you should be able to use three file formats: *.properties, Java
>> *.xml, and OFBiz *.xml. Nothing needs to be imported.
>>
>> -Adrian
>>
>> STELTZLEN Charles wrote:
>>> Hi adrian,
>>>
>>> Effectively, I imported the last UtilProperties and I followed errors
>>> in order to solve
>>> the compilation problems, so I also imported
>>> ResourceBundleMapWrapper, and then
>>> the project builded correctly.
>>> But the xml are still not imported. So, I'm stuck because I'have no
>>> more errors or things
>>> like that to follow.
>>>
>>> But thanks Adrian, I think I will wait the next migration to use this
>>> functionality.
>>>
>>> Best regards,
>>> Charles.
>>>
>>> Adrian Crum a e'crit :
>>>> Actually, I sent that reply off too fast. There were some
>>>> refactorings done recently that are not backwards compatible. You'll
>>>> need to do a little work on the file to make it compatible.
>>>>
>>>> -Adrian
>>>>
>>>>
>>>> --- On Fri, 12/12/08, Adrian Crum <[hidden email]> wrote:
>>>>
>>>>  
>>>>> From: Adrian Crum <[hidden email]>
>>>>> Subject: Re: Question on XML labels migration
>>>>> To: [hidden email]
>>>>> Date: Friday, December 12, 2008, 7:01 AM
>>>>> You'll need the latest UtilProperties.java file.
>>>>>
>>>>> -Adrian
>>>>>
>>>>>
>>>>> --- On Fri, 12/12/08, STELTZLEN Charles
>>>>> <[hidden email]> wrote:
>>>>>
>>>>>  
>>>>>> From: STELTZLEN Charles
>>>>>>      
>>>>> <[hidden email]>
>>>>>  
>>>>>> Subject: Question on XML labels migration
>>>>>> To: [hidden email]
>>>>>> Date: Friday, December 12, 2008, 1:34 AM
>>>>>> Hi all,
>>>>>>
>>>>>> I'm on an ofbiz from last year, still with
>>>>>>      
>>>>> UiLabels
>>>>>  
>>>>>> properties files.
>>>>>> I would like to know if it's possible/easy  :-) to
>>>>>>      
>>>>> get
>>>>>  
>>>>>> the work on XML
>>>>>> labels without a big update (list of patch).
>>>>>>
>>>>>> Charles.
>>>>>>      
>>>>
>>>>
>>>>        
>>>
>>>
>>
>
>